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

           Summary: sun.net.www.http.KeepAliveCache preventing classloader
                    from being garbage collected
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: koo...@ncsa.illinois.edu


Created an attachment (id=25377)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25377)
patch to jreMemoryLeakPreventionListener to load
sun.net.www.http.KeepAliveCache using system classloader

When a servlet creates a URLConnection, internally this is done using
sun.net.www.http.HttpClient. To have the ability to keep connections alive and
close them after a certain time they are placed inside a cache. A static
reference is kept to this cache (sun.net.www.http.KeepAliveCache).

It seems this cache is never released and the classloader stays in memory.

I have a patch to jreMemoryLeakPreventionListener.java that will make sure the
KeepAliveCache is loaded by the system classloader and not the
webAppClassLoader.

-- 
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to