Vadim Gritsenko wrote: > Of course it is required, and of course it is a problem :-) > > Thread (pooled tomcat thread) > --> ThreadLocalMap > --> ThreadLocalMap.Entry > --weak--> ThreadLocal (ContextMap.c_localContext) > -strong-> ContextMap Object > --> ContextMap Class > --> ThreadLocal (c_localContext) > --> WebAppClassLoader (<loader>) > > So as you can see there is a strong reference from ContextMap class to the > ThreadLocal which prevents GC of the WebAppClassLoader :-) See also [1] and > referenced BugParade entry. > Ah, ok - what a crap; so actually this means that one should clear all ThreadLocal variables. Are only static thread locals effected or also instance variables using thread locals?
Carsten -- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
