我仍然在tomcat/logs/catalina.out
中看到此錯誤。Catalina.out內存泄漏錯誤
Dec 29, 2011 4:04:36 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/LoggingMonitor] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
Dec 29, 2011 4:04:36 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180
是否值得考慮,如果是,我該如何糾正?
其實我正在做的是監視一個正在不斷更新的日誌文件,我在每秒鐘後運行的計時器的幫助下做到這一點。可以建議一些更好的技術,將不勝感激, – Rookie 2012-01-02 11:25:06
警告消息似乎來自服務器仍在運行時。可能只是重新啓動一個webapp。守護進程屬性不會解決這個問題。它應該徹底退出關閉servlet上下文事件。 – 2012-01-02 14:18:39