主题 : 关于tomcat的问题
级别: 秀才
UID: 23187
积分:59 加为好友
威望: 0 精华: 0
主题:5 回复:24
注册时间:2011-08-29
在线时长:0
1#   发表于:2011-12-30 11:42:19  IP:113.114.*.*
我的tomcat上面部署的应用,只要重新部署应用,或者将已经部署的应用重启,tomcat就会挂掉,不知道大家是否有类似问题。

1、经过分析日志:
信息: Closing Spring root WebApplicationContext
2011-12-29 23:28:47 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2011-12-29 23:28:47 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
2011-12-29 23:28:47 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak.
2011-12-29 23:28:47 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] but has failed to stop it. This is very likely to create a memory leak.
2011-12-29 23:28:47 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] but has failed to stop it. This is very likely to create a memory leak.
2011-12-29 23:28:47 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.

看报的异常信息是应用程序注册了JDBC驱动,但当程序停止时无法注销这个驱动,tomcat为了防止内存溢出,就给强制注销了。

在网上搜,tomcat6.0以上版本皆有此问题。要么取消tomcat防内存溢出的监听。

不清楚大家都是怎么处理的。
级别: 总版主
UID: 10736
积分:148522 加为好友
威望: 205 精华: 42
主题:287 回复:126222
注册时间:2010-09-08
在线时长:18.19
2#   发表于:2011-12-30 11:49:21  IP:59.244.*.*
这个没什么好的解决办法的,可以考虑更换连接方式
路漫漫其修远兮,吾将上下而求索!
1 共1页