近日發現啟動tomcat的時候報如下警告:
2014-9-16 10:25:26 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 嚴重: 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. 2014-9-16 10:25:26 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 嚴重: The web application [] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
原因:
使用killall 或者 kill -9直接殺死java進程,導致相關內存沒有及時釋放.
解決:
使用stop.sh來停止tomcat.
