First of all, the subject is wrong. There is no memory leak in Tomcat. There is a memory leak in the application you are running on Tomcat.
On 20/05/2016 14:21, Sanka, Ambica wrote: > 2016-05-19 14:03:31,161 [localhost-startStop-2] WARN > org.apache.catalina.loader.WebappClassLoader- The web application > [/fmDirectoryService] appears to have started a thread named [Thread-6] but > has failed to stop it. This is very likely to create a memory leak. Stack > trace of thread: > > java.lang.Thread.sleep(Native Method) > > net.atpco.cluster.support.BaseLocator$AdminTask.run(BaseLocator.java:141) What isn't clear in the message above? Based on the Java package name and your e-mail address net.atpco.cluster.support.BaseLocator is code that you control. BaseLocator starts a thread so it needs to stop that thread when the web application shuts down. ServletContextListener.contextDestroyed() is usually where such clean-up is performed. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org