【发布时间】:2012-05-23 18:07:55
【问题描述】:
我目前正在使用 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.
我没有在我的网络应用程序中使用 java.util.Timer。
【问题讨论】:
-
进行线程转储。这可能会揭示线程正在做什么以及它可能在哪里启动。
标签: jsp tomcat servlets memory-leaks