Tomcat Guice/JDBC Memory Leak
由于Tomcat中的孤立线程,我遇到了内存泄漏。特别是,Guice 和 JDBC 驱动程序似乎没有关闭线程。
Aug 8, 2012 4:09:19 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak.
Aug 8, 2012 4:09:19 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
我知道这与其他问题(例如这个问题)类似,但在我的情况下,“不要担心它”的答案是不够的,因为它给我带来了问题。我有CI服务器定期更新此应用程序,在6-10次重新加载后,CI服务器将挂起,因为Tomcat内存不足。
我需要能够清除这些孤立的线程,以便我可以更可靠地运行我的CI服务器。任何帮助将不胜感激!