Hi all,


I have been investigating a memory leak of Jenkins server(Jenkins war 
deployed in Tomcat server). I have done some profiling and it seems 
"org/apache/catalina/loader/WebappClassLoader@0x00000006fb9aac68" class 
loaders are kept in live status even after the webapp is undeployed, and GC 
does not clear them up. Then the tomcat goes OOM after sometime.


I can also see error [1] at undeployment time. 


Is this a know issue? Any workaround to prevent this?


Thanks in advance. 



[1] 


Oct 28, 2014 11:26:15 AM org.apache.catalina.loader.WebappClassLoader 
checkThreadLocalMapForLeaks

SEVERE: The web application [/jenkins] created a ThreadLocal with key of 
type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@14fae02c]) and a 
value of type [org.acegisecurity.context.SecurityContextImpl] (value 
[org.acegisecurity.context.SecurityContextImpl@ffffffff: Null 
authentication]) 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.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to