tomcat 启动报错 registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister

 

2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/bjrcsc] 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.
2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/bjrcsc] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak.
2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/bjrcsc] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/bjrcsc] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
2013-2-28 15:29:30 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

 

在网上查说是tomcat版本问题,有如下解决办法

<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>;
将上面的东东关闭。

我这里不好使

我没有关闭上面的监听,停止服务,清理catalina,再启动。问题解决了


 

阅读更多

没有更多推荐了,返回首页