https://issues.apache.org/bugzilla/show_bug.cgi?id=46221

           Summary: Leak WebappClassLoader with commons-logging and log4j
           Product: Tomcat 5
           Version: 5.5.27
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: [EMAIL PROTECTED]


Tomcat is leaking a few references to the WebappClassLoader instance when the
application is stopped and contains commons-logging and log4j packages.

The attached zip file is a very simple test case. I use Yourkit Java Profiler
to find the remaining references.

The leak is due to loggers not released by the various containers that are
alive until all the webapp is completely unloaded which does happen in my case
(start,stop,start,stop...).

The attached patch applies against tomcat 5.5.27 and solves the problem. I am
not sure about the its righteousness, especially for the Valve stuff, but I
guess it is a good start.


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to