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 2007/10/23 10:32:34 UTC

DO NOT REPLY [Bug 43675] New: - Classloader leak in org.apache.tomcat.util.http.ServerCookie

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43675>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43675

           Summary: Classloader leak in
                    org.apache.tomcat.util.http.ServerCookie
           Product: Tomcat 5
           Version: 5.5.24
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: davide.romanini@gmail.com


I'm investigating problems related to PermGen saturation on hot redeploy of my 
web applications. Using jhat I found that the class 
org.apache.catalina.util.http.ServerCookie has a static reference to my webapp 
classloader through the log field. This is what jhat shows:

Static reference from org.apache.tomcat.util.http.ServerCookie.log (from class 
org.apache.tomcat.util.http.ServerCookie) :
--> org.apache.commons.logging.impl.Log4JLogger@0x66826ed8 (16 bytes) (??:)
--> class org.apache.commons.logging.impl.Log4JLogger (84 bytes) (??:)
--> org.apache.catalina.loader.WebappClassLoader@0x6632eb38 (152 bytes) 

It is similar to bug#42172.

The problem shows in Tomcat 5.5.25

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 43675] - Classloader leak in org.apache.tomcat.util.http.ServerCookie

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43675>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43675





------- Additional Comments From davide.romanini@gmail.com  2007-10-23 01:51 -------
Same problem with org.apache.jasper.xmlparser.ParserUtils.errorHandler and 
org.apache.jasper.xmlparser.ParserUtils.entityResolver.

Static reference from org.apache.jasper.xmlparser.ParserUtils.errorHandler 
(from class org.apache.jasper.xmlparser.ParserUtils) :
--> org.apache.jasper.xmlparser.MyErrorHandler@0x6657ffb8 (12 bytes) (field 
log:)
--> org.apache.commons.logging.impl.Log4JLogger@0x66580558 (16 bytes) (??:)
--> class org.apache.commons.logging.impl.Log4JLogger (84 bytes) (??:)
--> org.apache.catalina.loader.WebappClassLoader@0x6632eb38 (152 bytes)
Static reference from org.apache.jasper.xmlparser.ParserUtils.entityResolver 
(from class org.apache.jasper.xmlparser.ParserUtils) :
--> org.apache.jasper.xmlparser.MyEntityResolver@0x6657ffc8 (12 bytes) (field 
log:)
--> org.apache.commons.logging.impl.Log4JLogger@0x66580568 (16 bytes) (??:)
--> class org.apache.commons.logging.impl.Log4JLogger (84 bytes) (??:)
--> org.apache.catalina.loader.WebappClassLoader@0x6632eb38 (152 bytes) 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 43675] - Classloader leak in org.apache.tomcat.util.http.ServerCookie

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43675>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43675


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From markt@apache.org  2008-01-06 15:14 -------
Fixed in 5.5.x and will be included in 5.5.26 onwards.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 43675] - Classloader leak in org.apache.tomcat.util.http.ServerCookie

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43675>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43675





------- Additional Comments From markt@apache.org  2007-10-30 19:41 -------
Patch proposed for tc6. If accepted, I'll propose a backport to 5.5.x

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 43675] - Classloader leak in org.apache.tomcat.util.http.ServerCookie

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43675>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43675





------- Additional Comments From markt@apache.org  2007-11-27 15:10 -------
Fixed in 6.0.x.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org