当停止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的问题吗?
发布于 2015-07-07 05:01:10
你应该做一个线程转储,并检查这些阻塞的请求在做什么。
我怀疑是Wicket导致这些线程挂起。
https://stackoverflow.com/questions/31243195
复制相似问题