Spring Tomcat C3P0PooledConnectionPoolManager会创建内存泄漏

时间:2015-08-11 06:36:15

标签: java spring hibernate tomcat

我的应用程序是用Spring / Hibernate编写的,并且运行在Tomcat 7上。每当我停止tomcat时,我都会得到下面的日志。我已经应用了一些建议,例如在web.xml中注册的Listener中取消注册MySQL驱动程序,但它不起作用。我仍然得到以下错误。

Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7lu7n8gy0sz2|26476002]-AdminTaskTimer] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7lu7n8gy0sz2|26476002]-HelperThread-#0] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7lu7n8gy0sz2|26476002]-HelperThread-#1] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7lu7n8gy0sz2|26476002]-HelperThread-#2] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] 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.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7lu7n8gy0sz2|1e7f9929]-AdminTaskTimer] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7lu7n8gy0sz2|1e7f9929]-HelperThread-#0] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7lu7n8gy0sz2|1e7f9929]-HelperThread-#1] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myapp] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->2wpukr9b7lu7n8gy0sz2|1e7f9929]-HelperThread-#2] but has failed to stop it. This is very likely to create a memory leak.
Aug 11, 2015 2:20:00 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

0 个答案:

没有答案