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

Java 由于内存泄漏,我的网站一次又一次地停止,java,spring,spring-mvc,memory-leaks,tomcat7,Java,Spring,Spring Mvc,Memory Leaks,Tomcat7,我用JavaSpring开发了一个网站。它有非常好的落脚点,大约5000/天。我已经在JavaApacheTomcat服务器上部署了它。每天停止2-3次。我遇到内存泄漏问题,但我无法确定该泄漏问题的位置或发生原因 我从Apache获得以下日志: SEVERE: The web application [ ] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Loca

我用JavaSpring开发了一个网站。它有非常好的落脚点,大约5000/天。我已经在JavaApacheTomcat服务器上部署了它。每天停止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.

这可能会帮助您找到泄漏的正确途径。JProfiler是一个可能有助于发现泄漏的工具,如果它存在的话。@LukeSpringWalker不,我没有这个工具。你能告诉我怎么用吗?@CodeHunter我很久以前用过,我不记得怎么用了,但它很直观。有一些关于它的视频和教程。