【问题标题】:Tomcat+Wicket: a lot of ThreadContext warnings when stopping tomcatTomcat+Wicket:停止tomcat时出现很多ThreadContext警告
【发布时间】: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 的一个问题吗?

【问题讨论】:

    标签: tomcat wicket


    【解决方案1】:

    你应该做一个线程转储并检查这些被阻塞的请求在做什么。

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

    【讨论】:

      猜你喜欢
      • 2016-05-22
      • 1970-01-01
      • 2023-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-11
      • 2018-01-20
      相关资源
      最近更新 更多