[
https://issues.jboss.org/browse/ISPN-2786?page=com.atlassian.jira.plugin....
]
Johann Burkard commented on ISPN-2786:
--------------------------------------
Tomcat has a {{ThreadLocalLeakPreventionListener}} that prints non-cleared ThreadLocals
during application un-deployment.
In other words, if you deploy an app that leaks Threads in Tomcat, you'll notice
during shutdown, re- or un-deployment.
Not sure if nulling ThreadLocals will help. The magic method is {{ThreadLocal#remove()}}.
ThreadLocal memory leak in Tomcat
---------------------------------
Key: ISPN-2786
URL:
https://issues.jboss.org/browse/ISPN-2786
Project: Infinispan
Issue Type: Bug
Components: Marshalling, Transactions
Affects Versions: 5.1.8.Final
Reporter: Johann Burkard
Assignee: Galder ZamarreƱo
Labels: leak, local, memory, thread, threadlocal
Just started an app using Infinispan 5.1.8.Final on Tomcat and got a few ThreadLocal
problems during un-deployment:
(Shortened)
{code}
key=org.jboss.marshalling.UTFUtils.BytesHolder
value=org.jboss.marshalling.UTFUtils$BytesHolder@697a1686
key=java.lang.ThreadLocal@36ed5ba6
value=org.infinispan.context.SingleKeyNonTxInvocationContext{flags=null}
key=org.infinispan.marshall.jboss.AbstractJBossMarshaller$1
value=org.infinispan.marshall.jboss.AbstractJBossMarshaller$1@75f10df7
value=org.infinispan.marshall.jboss.AbstractJBossMarshaller.PerThreadInstanceHolder
{code}
I do call {{DefaultCacheManager#shutdown()}} during un-deployment. :)
Thanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira