我有一个在Tomcat上运行的Spring Web应用程序。
尝试使用shutdown.sh
脚本关闭Tomcat时,java进程不会结束,因为它有一个仍在运行的线程。 catalina.log
包含
Jul 22, 2013 2:07:50 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [com.google.common.base.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
显然BoneCP
有一些Guava
集成导致此线程被阻止。是否有一种干净或有意杀死此线程的方法?