所有: 這裏是我的問題:當我使用shundown.bat關閉Tomcat的,但它失敗了,這裏也有日誌:Tomcat關閉內存泄漏,Java線程不能停止
Severe: The web application [/shop] appears to have started a thread named [ConnectionStateManager-0] but has failed to stop it. This is very likely to create a memory leak.
2013-10-22 11:38:10 org.apache.catalina.loader.WebappClassLoader clearReferences
Severe: The web application [/shop] appears to have started a thread named [CuratorFramework-0] but has failed to stop it. This is very likely to create a memory leak.
從日誌我們可以知道它可能是一些線程無法停止,並可能導致memeory泄漏;
劑量任何人看到面前這個還是有人可以給一些soultions,謝謝
看來tomcat不會殺死webapps啓動的守護進程線程,我們需要重寫ServletContextListener'contextDestroyed(ServletContextEventarg0)方法來停止守護進程線程。這個例外不會影響我們,但無論如何這是一個錯誤或錯誤,我想解決它。 – Winston