【发布时间】:2015-07-06 10:14:25
【问题描述】:
当停止运行我们基于 Wicket-6.19 的网站的 Tomcat 时,大量警告会淹没我们的日志文件:
INFO: Stopping service Catalina
Jul 06, 2015 8:10:22 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
...
Jul 06, 2015 8:10:22 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@581d6d]) and a value of type [org.apache.wicket.ThreadContext] (value [org.apache.wicket.ThreadContext@f40228]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
...
这是我应该关心的问题吗?这会是我们使用 Wicket 的一个问题吗?
【问题讨论】: