我有一个在Ubuntu 14.04上运行的java Web应用程序。 我使用的是apache tomcat 7.0.54,数据库是mysql,mysql连接器版本是5.1.9。
每次重新启动tomcat并多次点击f5后,应用程序将不再响应(继续加载,主页面将无法打开)。
Web应用程序主页调用许多返回json请求的Web服务(使用spring mvc和maven进行restful),所有这些请求将在一段时间后返回 503(服务不可用)。
我正在检查日志中是否存在任何错误,catalina.out根本不会显示任何错误(实际上它会停止显示任何新信息)
catalina.2015-12-03.log在tomcat启动时显示以下行(不是在发生错误时):
- SEVERE: The web application [/xyz] 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] $
Dec 03, 2015 1:01:57 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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
[org.sprin$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] created a ThreadLocal with key of
type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@52fbd8a8])
and a value of type
[org.springframework.security.core.context.SecurityContextImpl]
(value [org$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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] $
Dec 03, 2015 1:01:57 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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] $
Dec 03, 2015 1:01:57 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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
[org.sprin$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] created a ThreadLocal with key of
type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@52fbd8a8])
and a value of type
[org.springframework.security.core.context.SecurityContextImpl]
(value [org$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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
[org.sprin$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] created a ThreadLocal with key of
type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@52fbd8a8])
and a value of type
[org.springframework.security.core.context.SecurityContextImpl]
(value [org$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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] $
Dec 03, 2015 1:01:57 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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
[org.sprin$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks $e
[org.springframework.security.core.context.SecurityContextImpl@d6258b44:
Authentication:
org.springframework.security.authentication.UsernamePasswordAuthenticationToken@d6258b44:
Principal: com.dev.tima.bo.security.UserBO@6dc59dfe;$ Dec 03, 2015
1:01:57 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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] $
Dec 03, 2015 1:01:57 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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
[org.sprin$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] created a ThreadLocal with key of
type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@52fbd8a8])
and a value of type
[org.springframework.security.core.context.SecurityContextImpl]
(value [org$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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] $
Dec 03, 2015 1:01:57 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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
[org.sprin$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] created a ThreadLocal with key of
type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@52fbd8a8])
and a value of type
[org.springframework.security.core.context.SecurityContextImpl]
(value [org$ Dec 03, 2015 1:01:57 PM
org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
- SEVERE: The web application [/xyz] 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] $
Dec 03, 2015 1:01:57 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
非常感谢任何帮助