Tomcat + Wicket:停止tomcat时有很多ThreadContext警告

时间:2015-07-06 10:14:26

标签: tomcat wicket

当停止Tomcat运行我们基于Wicket-6.19的网站时,我们的日志文件会出现一连串警告:

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的一个问题吗?

1 个答案:

答案 0 :(得分:1)

您应该进行线程转储并检查这些被阻止的请求正在做什么。

我怀疑Wicket导致这些线程挂起。