由于内存泄漏,我的网站一次又一次停止

时间:2015-02-22 15:26:34

标签: java spring spring-mvc memory-leaks tomcat7

我在Java Spring开发了一个网站。它具有非常好的足部跌落5000 /天。我已经在Java Apache Tomcat服务器上部署了它。每天停止2-3次。我遇到了内存泄漏问题,但我无法确定此泄漏问题的原因或发生这种情况的原因。

我正在从Apache获取以下日志:

SEVERE: The web application [ ] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Locale context]) and a value of type [org.springframework.web.servlet.DispatcherServlet$1] (value [en_US]) 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.
Feb 22, 2015 8:07:03 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [ ] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Request attributes]) and a value of type [org.springframework.web.context.request.ServletRequestAttributes] (value [org.apache.catalina.connector.RequestFacade@25494fc]) 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.
Feb 22, 2015 8:07:03 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [ ] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Locale context]) and a value of type [org.springframework.web.servlet.DispatcherServlet$1] (value [en_US]) 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.

0 个答案:

没有答案