[ 
https://issues.apache.org/jira/browse/CXF-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179577#comment-13179577
 ] 

Art O Cathain commented on CXF-4006:
------------------------------------

This snippet is from a Yourkit trace to the GC roots, after undeployment:

<class> of org.apache.cxf.jaxrs.ext.MessageContextImpl
value of java.lang.ThreadLocal$ThreadLocalMap$Entry
[482] of java.lang.ThreadLocal$ThreadLocalMap$Entry[512]
table of java.lang.ThreadLocal$ThreadLocalMap
threadLocals of com.sun.grizzly.http.HttpWorkerThread [JNI Global, Stack Local, 
Thread]  "http-thread-pool-8080(4)"
                
> Possible classloader leak due to ThreadLocal
> --------------------------------------------
>
>                 Key: CXF-4006
>                 URL: https://issues.apache.org/jira/browse/CXF-4006
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.5.1
>         Environment: Glassfish
> OpenJDK Runtime Environment (IcedTea6 1.10.4) (fedora-61.1.10.4.fc16-x86_64)
>            Reporter: Art O Cathain
>
> org.apache.cxf.jaxrs.ext.MessageContextImpl is kept in a ThreadLocal for each 
> HTTP request which means when a CXF-servlet-based webapp is undeployed, the 
> webapp's classloader leaks. 
> (At least, I think that's what's going on, I'm not that expert at tracking 
> down memory leaks. Perhaps I have misconfigured something?)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to