嗨,我的应用程序在 tomcat(和 glassfish)上出现了 permgen 错误,我知道它们是由 ClassLoader 挂在热部署之间的引用上引起的。
我想追查内存泄漏,但以前没有做过,我认为一个好的明星会解决我重新部署时tomcat吐出的以下问题:
SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
06-Jan-2013 19:47:08 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Resource Destroyer in BasicResourcePool.close()] but has failed to stop it. This is very likely to create a memory leak.
我想我需要在一些 spring 销毁处理程序中杀死这些线程,但我不确定如何找到销毁它们的句柄?
干杯! NFV