You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (Commented) (JIRA)" <ji...@apache.org> on 2012/01/04 16:43:39 UTC

[jira] [Commented] (CXF-4006) Possible classloader leak due to ThreadLocal

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

Sergey Beryozkin commented on CXF-4006:
---------------------------------------

Hi, the thread local value is released by the runtime after the response has been handled, so no leak will occur.
Do you have some information that shows there could be a leak ?
                
> 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