Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » Leak Suspects org.apache.xalan.templates.ElemTemplate
Leak Suspects org.apache.xalan.templates.ElemTemplate [message #8705] Tue, 10 February 2009 16:59 Go to next message
Matteo TURRA is currently offline Matteo TURRAFriend
Messages: 4
Registered: July 2009
Junior Member
I run memory-analyzer on a dump from production environment created on
OutOfMemoryError.

As first report I choose Memory Leak Suspect and it shows me two classes:
- org.apache.xalan.templates.ElemTemplate 29.155 instances occupy
227.620.440 (44,99%) bytes
and
- org.apache.xerces.parsers.SAXParser 164 instances occupy 57.489.064
(11,36%) bytes.

Our application is a Web servlet use Xalan 2.6.0 tranformer to render HTML
pages from xml data.

Does anybody have such an error?

How can I investigate more?

Thanks in advance, Matteo.
Re: Leak Suspects org.apache.xalan.templates.ElemTemplate [message #8731 is a reply to message #8705] Wed, 11 February 2009 10:09 Go to previous message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 165
Registered: July 2009
Senior Member
Hi Matteo,

Is it expected that the parsers are kept by the application or not? If you
want/need to keep them, then I guess you will have to accept the "cost"
and try to re-arrange the memory settings of the server.

If you didn't expect these instances to be kept, then you can have a look
at the paths from GC roots, to figure out who is keeping them in memory.
In the generated report, there should be details for every suspect.
Normally, there (in the detaills) you should find already summarized info
about the paths from the GC roots to the suspect objects. In your case,
you should be able to see the common part of the paths to each of the
SAXParsers / ElemTemplates. Have you lookead at this already? Does it help
you?

Regards,
Krum
Previous Topic:What does the objectid mean?
Next Topic:Load 3,4 GB 64 bits dump on 32 bits
Goto Forum:
  


Current Time: Sat Jul 27 16:54:49 GMT 2024

Powered by FUDForum. Page generated in 0.03673 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top