[
https://issues.jboss.org/browse/RF-12601?page=com.atlassian.jira.plugin.s...
]
Michael Heinen commented on RF-12601:
-------------------------------------
I took a heap dump via jmap and opened it with MyEclipse (Memory Analasys view)
"Merge shorted path to GC Roots" with excluded pahntom/weak/soft/etc references
shows following:
Class Name | Ref.
Objects | Shallow Heap | Ref. Shallow Heap | Retained Heap
------------------------------------------------------------------------------------------------------------------------------------------------------
class com.sun.xml.internal.bind.DatatypeConverterImpl @ 0xfc8f80a0 System Class |
1 | 48 | 328 | 440
'- datatypeFactory org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl @ 0xfdc1a130 |
1 | 16 | 328 | 16
'- <class> class org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl @
0xfc901ef0| 1 | 0 | 328 | 0
'- <classloader> org.apache.catalina.loader.WebappClassLoader @ 0xfdb9fe28
| 1 | 328 | 328 | 708.352
------------------------------------------------------------------------------------------------------------------------------------------------------
I am not sure why this does not occur without the richfaces-components jars. Are they
using xerces directly or indirectly? I do not see a dependency in the pom file.
This can be reproduced very easy with the attached war and richfaces libs.
Just take a heap dump via jmap (jmap -dump:file=foo.hprof <processId>
Is there anything else I can do?
Memory leak (permgen) in combination with xerces
------------------------------------------------
Key: RF-12601
URL:
https://issues.jboss.org/browse/RF-12601
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.2.2.Final
Environment: Tomcat 6.0.36
myFaces 2.1.9
xerces 2.9.0
Reporter: Michael Heinen
Labels: memoryleak, waiting_on_user
Attachments: leak.war
I created a simple web app without any classes, xhtml files, config files.
There are only some jars, including xerces, in the lib folder only.
A "java.lang.OutOfMemoryError: PermGen space" occurs if this app is started,
stopped and restarted.
It does not occur if either richfaces-components-XXX hars OR xerces are removed from the
webApp,
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira