tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48837] Memory leaks protection does not cure leaks triggered by JSP pages code
Date Thu, 11 Mar 2010 21:46:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48837

--- Comment #1 from sylvain.laurent@gmail.com 2010-03-11 21:46:46 UTC ---
Created an attachment (id=25116)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25116)
Patch to enhance classloader leaks because of uncleared ThreadLocal

Proposing a patch to better detect leaks. Before the patch, the leak caused by
an uncleared ThreadLocal is detected only if the ThreadLocal key or value is
loaded by the WebAppClassLoader.
The patch proposes to also detect cases where the key or value object class was
loaded by a child classloader (or any level of descendant).

The leak of the example foo.jsp is detected (and cleared) with this patch.

Note that there's still a leak if the key or value is a JDK class like an
ArrayList which itself contains an instance of a class loaded by the
WebAppClassLoader (or a child classloader).

Sylvain

-- 
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


Mime
View raw message