[ https://issues.apache.org/jira/browse/CXF-5492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15839480#comment-15839480 ]
Roman Proshin commented on CXF-5492: ------------------------------------ I have the same problem: when I'm stopping the Tomcat 8.5.9 server with my application (that uses Apache CXF 3.1.9) I get next 'severe' messages: {noformat} 26-Jan-2017 12:35:18.941 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@5af51815]) and a value of type [org.apache.cxf.BusFactory.BusHolder] (value [org.apache.cxf.BusFactory$BusHolder@119f80ac]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 26-Jan-2017 12:35:18.941 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@5af51815]) and a value of type [org.apache.cxf.BusFactory.BusHolder] (value [org.apache.cxf.BusFactory$BusHolder@1998c335]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. {noformat} > ThreadLoad org.apache.cxf.BusFactory.BusHolder leak in Tomcat > ------------------------------------------------------------- > > Key: CXF-5492 > URL: https://issues.apache.org/jira/browse/CXF-5492 > Project: CXF > Issue Type: Bug > Components: Bus > Affects Versions: 2.7.6, 2.7.8, 2.7.14 > Environment: oracle jdk 7, windows7 x64 > Reporter: Alex O'Ree > > Upon web application redeploy (that calls a web service), I've been getting a > number of log warnings when either Tomcat shutdown's down or when the web app > is redeployed > Jan 12, 2014 10:12:28 PM org.apache.catalina.loader.WebappClassLoader > clearThreadLocalMap > SEVERE: A web application created a ThreadLocal with key of type [null] > (value [com.sun.xml.bind.v2.ClassFactory$1@fb0bc > 0e]) and a value of type [java.util.WeakHashMap] (value [{class > org.uddi.api_v3.BusinessList=java.lang.ref.WeakReference > @1c0a432e, class > org.uddi.api_v3.BusinessInfo=java.lang.ref.WeakReference@65c08f63, class > org.uddi.api_v3.BusinessInfos= > java.lang.ref.WeakReference@4505e0c5, class > org.uddi.api_v3.Description=java.lang.ref.WeakReference@4e7c8ea, class org.u > ddi.api_v3.Name=java.lang.ref.WeakReference@d377d2a, class > org.uddi.api_v3.ServiceInfo=java.lang.ref.WeakReference@35fa5 > 72d, class java.util.ArrayList=java.lang.ref.WeakReference@4671670a, class > javax.xml.bind.annotation.W3CDomHandler=java. > lang.ref.WeakReference@3f23e5a7, class > org.uddi.api_v3.ListDescription=java.lang.ref.WeakReference@4dba5753, class > org.u > ddi.api_v3.ServiceInfos=java.lang.ref.WeakReference@4bb3203}]) but failed to > remove it when the web application was stop > ped. To prevent a memory leak, the ThreadLocal has been forcibly removed. > Jan 12, 2014 10:12:28 PM org.apache.catalina.loader.WebappClassLoader > clearThreadLocalMap > SEVERE: A web application created a ThreadLocal with key of type > [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1 > dd06562]) and a value of type [org.apache.cxf.BusFactory.BusHolder] (value > [org.apache.cxf.BusFactory$BusHolder@5cb01438 > ]) but failed to remove it when the web application was stopped. To prevent a > memory leak, the ThreadLocal has been forc > ibly removed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)