Web 应用程序创建了一个 ThreadLocal,但无法删除它 Tomcat [SEVERE]
The web application created a ThreadLocal, but failed to remove it Tomcat [SEVERE]
我在 tomcat 控制台上遇到以下错误并导致内存不足错误。
16-Mar-2015 10:57:25.659 SEVERE [http-nio-8080-exec-6]
org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks
The web application [XXXX] created a ThreadLocal with key of type
[net.jawr.web.context.ThreadLocalJawrContext] (value
[net.jawr.web.context.ThreadLocalJawrContext@7c709f7a]) and a value
of type [net.jawr.web.context.JawrContext] (value
[net.jawr.web.context.JawrContext@45f64269]) 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.
我们正在使用 net.jawr 依赖项来压缩 js 和 css 文件。请为此提出建议。提前致谢。
这是 jawr 中的错误。
它已在 V3.5 中修复(2014 年 1 月 1 日发布)
发行说明:
Issue #198 fixed: Memory leak when restarting server due to missing
reset of a ThreadLocal
我在 tomcat 控制台上遇到以下错误并导致内存不足错误。
16-Mar-2015 10:57:25.659 SEVERE [http-nio-8080-exec-6] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [XXXX] created a ThreadLocal with key of type [net.jawr.web.context.ThreadLocalJawrContext] (value [net.jawr.web.context.ThreadLocalJawrContext@7c709f7a]) and a value of type [net.jawr.web.context.JawrContext] (value [net.jawr.web.context.JawrContext@45f64269]) 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.
我们正在使用 net.jawr 依赖项来压缩 js 和 css 文件。请为此提出建议。提前致谢。
这是 jawr 中的错误。
它已在 V3.5 中修复(2014 年 1 月 1 日发布)
发行说明:
Issue #198 fixed: Memory leak when restarting server due to missing reset of a ThreadLocal