我目前正在使用 tomcat7 。我的 Web 应用程序在停止时导致了 Timer 内存泄漏。日志是:
SEVERE: A web application appears to have started a TimerThread
named [Timer-5] via the java.util.Timer API but has failed to stop it.
To prevent a memory leak, the timer (and hence the associated thread)
has been forcibly cancelled.
我没有ava.util.Timer
在我的网络应用程序中使用 j。