You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/06/20 16:57:46 UTC
DO NOT REPLY [Bug 51395] New: First application that loads
SAXParserFactory causes Class loader memory leak
https://issues.apache.org/bugzilla/show_bug.cgi?id=51395
Bug #: 51395
Summary: First application that loads SAXParserFactory causes
Class loader memory leak
Product: Tomcat 7
Version: 7.0.14
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: ArjenCornelis.Knibbe@Getronics.com
Classification: Unclassified
Overview
The class org.apache.catalina.startup.ContextConfig has an array of
org.apache.tomcat.util.digester.Digester objects. Each Digester has a field
factory to refer to a SAXParserFactory. If that SAXParserFactory is loaded via
a WebappClassLoader, that WebappClassLoader is stuck in memory.
Steps to reproduce
Create a Web application that has xercesImpl.jar in its lib. (The Web
application itself doesn't need to use any of the xerces classes.) Upload the
application war file using Tomcat Manager. Verify that the application is
loaded via Tomcat Manager -> List Applications
Restart Tomcat. Via Tomcat Manager -> List Applications, verify that the
application is running. Undeploy the application. Click on Find leaks. The
message above shows the application as leaking.
Make a memory dump using jmap, inspect the memory using jhat.
The WebappClassLoader for this application is still present. Its "reference
chains from rootset" shows a chain like this:
Static reference from org.apache.catalina.startup.ContextConfig.webDigesters
(from class org.apache.catalina.startup.ContextConfig) :
--> [Lorg.apache.tomcat.util.digester.Digester;@0x78be4958 (24 bytes) (Element
0 of [Lorg.apache.tomcat.util.digester.Digester;@0x78be4958:)
--> org.apache.tomcat.util.digester.Digester@0x78be3c50 (101 bytes) (field
factory:)
--> org.apache.xerces.jaxp.SAXParserFactoryImpl@0x78bf0b28 (20 bytes) (??:)
--> class org.apache.xerces.jaxp.SAXParserFactoryImpl (84 bytes) (??:)
--> org.apache.catalina.loader.WebappClassLoader@0x78be3ea0 (165 bytes)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51395] First application that loads
SAXParserFactory causes Class loader memory leak
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51395
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Mark Thomas <ma...@apache.org> 2011-06-20 19:27:43 UTC ---
Thanks for the report. This has been fixed in 7.0.x and will be included in
7.0.17 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51395] First application that loads
SAXParserFactory causes Class loader memory leak
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51395
--- Comment #2 from Arjen Knibbe <Ar...@Getronics.com> 2011-06-20 15:08:46 UTC ---
Created attachment 27180
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27180
Minimal web application with xercesImpl in lib - second part
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51395] First application that loads
SAXParserFactory causes Class loader memory leak
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51395
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vlad@aviarc.com.au
--- Comment #4 from Mark Thomas <ma...@apache.org> 2011-08-12 09:14:55 UTC ---
*** Bug 51652 has been marked as a duplicate of this bug. ***
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 51395] First application that loads
SAXParserFactory causes Class loader memory leak
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51395
--- Comment #1 from Arjen Knibbe <Ar...@Getronics.com> 2011-06-20 15:07:59 UTC ---
Created attachment 27179
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27179
Minimal web application with xercesImpl in lib
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 51395] First application that loads SAXParserFactory causes
Class loader memory leak
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51395
--- Comment #5 from Jackie Rosen <ja...@hushmail.com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org