[
https://issues.jboss.org/browse/JBIDE-11539?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-11539:
-----------------------------------------------
I have created dumps, see attached pictures Dump_1.png and Dump_2.png.
Both pictures show one entry in HashMap 'cache' of PageContextFactory, item
'value' is selected, and item 'path' is expanded to show path to the file
(you may study entries in 'cache' map in your dump in the same way to check if
there are paths to xml files).
In the first picture one value of type org.jboss.tools.jst.web.kb.internal.XmlContextImpl
takes as much as 3.2Mb; in the second picture one value of that type takes as little as
17Kb. The first picture is done before my changes yesterday, and XmlContextImpl keeps
reference to JobSafeStructuredDocument, instance of which takes almost all of those 3Mb;
the second picture is done after I removed that reference.
In the first picture PageContextFactory takes 100Mb, and in the second picture it takes
4Mb, which is 25 times less, for the same project. I believe that change should solve your
problem. Even if your xml files are irrelevant, xhtml files result in
FaceletPageContextImpl which extends XmlContextImpl, and so it kept the reference to a
document object, too.
Memory leak in org.jboss.tools.jst.web.kb
-----------------------------------------
Key: JBIDE-11539
URL:
https://issues.jboss.org/browse/JBIDE-11539
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core
Affects Versions: 3.3.0.Beta2
Environment: Windows XP
Eclipse 3.7
JBoss Tools(over marketplace, last update 4/11/2012
Reporter: Sigi Kiermayer
Assignee: Viacheslav Kabanovich
Priority: Critical
Fix For: 3.3.0.Beta3
Attachments: Dump_1 .png, Dump_2.png
I have huge memory problems and two days ago i made a heap dump and got following
information:
The classloader/component "org.jboss.tools.jst.web.kb" occupies 485,306,072
(76.24%) bytes. The memory is accumulated in one instance of
"java.util.HashMap$Entry[]" loaded by "<system class loader>".
Keywords
java.util.HashMap$Entry[]
org.jboss.tools.jst.web.kb
It is full of HashMapentries:
key: org.eclipse.core.internal.resources.File
value: org.jboss.tools.jst.web.kb.internal.XmlContextImpl
I have the memory dump here. i can provide it if you think it is a reproducible bug or
you have an idea how that can happen.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira