On 29/01/2016 14:34, Yuval Schwartz wrote: > Hello, > > tomcat version: 8.0.22 > java: jdk1.8.0_05 > server: Amazon Linux AMI > > I get the following warning message in my catalina log when I undeploy a > web application: > > *WARNING [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The > web application [ROOT##002] appears to have started a thread named > [pool-2-thread-1] but has failed to stop it. This is very likely to create > a memory leak. Stack trace of thread* > > As you can see, for some reason, I don't get a stack trace of the thread. > Therefore, I have no idea how to debug this warning. > > This particular warning was generated when tomcat detected an unused > version and undeployed it (I set undeployOldVersions="true"). > > Does anyone know how I can debug this warning. How can I know more about > this thread? That looks like a thread from Commons Pool (possibly via DBCP). The only way to be sure you have a leak or not is to use a profiler. See http://home.apache.org/~markt/presentations/2010-11-04-Memory-Leaks-60mins.pdf > I used the manager app and clicked "find leaks" but it said that there were > none. > (Can someone also explain why I have to be cautious when using this feature > on production environments).
It triggers a full GC which may (hopefully briefly) pause the entire JVM. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org