主题 : jeecms安装成功后,启动tomcat报错连不上数据库
级别: 秀才
UID: 60862
积分:64 加为好友
威望: 5 精华: 0
主题:7 回复:43
注册时间:2014-04-21
在线时长:0
1#   发表于:2014-06-09 09:34:37  IP:117.47.*.*
严重: 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.
六月 09, 2014 9:24:13 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:13 上午 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.
六月 09, 2014 9:24:13 上午 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.
六月 09, 2014 9:24:13 上午 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.
六月 09, 2014 9:24:13 上午 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.
六月 09, 2014 9:24:13 上午 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.
六月 09, 2014 9:24:13 上午 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.
六月 09, 2014 9:24:13 上午 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.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Dispatch-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
六月 09, 2014 9:24:14 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@1da0779] but has failed to stop it. This is very likely to create a memory leak.
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
2#   发表于:2014-06-09 09:35:42  IP:182.7.*.*
数据库服务开启了吗?
功成由勤,业精于勤。
级别: 秀才
UID: 60862
积分:64 加为好友
威望: 5 精华: 0
主题:7 回复:43
注册时间:2014-04-21
在线时长:0
3#   发表于:2014-06-09 09:38:54  IP:117.47.*.*
开启着呢
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
4#   发表于:2014-06-09 09:41:17  IP:182.7.*.*
那怎么会连接不上呢?您以前有正常连接启动过项目吗?
功成由勤,业精于勤。
级别: 秀才
UID: 60862
积分:64 加为好友
威望: 5 精华: 0
主题:7 回复:43
注册时间:2014-04-21
在线时长:0
5#   发表于:2014-06-09 09:44:37  IP:117.47.*.*
有,我在A主机上装的数据库,jeecms链接正常,在B主机只装了jeecms,数据库链接的是A的数据库,B就一直启动不起来
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
6#   发表于:2014-06-09 09:46:09  IP:182.7.*.*
你B主机数据库连接配置和A的是一样的吗?
功成由勤,业精于勤。
级别: 秀才
UID: 60862
积分:64 加为好友
威望: 5 精华: 0
主题:7 回复:43
注册时间:2014-04-21
在线时长:0
7#   发表于:2014-06-09 09:47:31  IP:117.47.*.*
一样的
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
8#   发表于:2014-06-09 09:50:34  IP:182.7.*.*
Tomcat7是吧? 它增加了一个内存泄漏的检查,主要是判断web应用重载时,类加载器中所有对象的引用都释放干净。

一般出现提示可能的原因:
1.JDBC驱动注册
2.一些日志框架
3.在ThreadLocal中保存对象,但是并不去删除它
4.启动了线程,但没有停止它

解决方法可能就是对应的应用需要加一个 ServletContextListener ,然后在 contextDestroyed 方法里去把以上的事情做掉。比如如果你用到了jdbc,那么需要手动去注销jdbc。threadlocal的保存的对象把它们清空掉。等等等等。。。

要具体问题具体分析。当然也可以不做什么事情。其实也没有多大关系的。

这里的内存泄漏指的也是你在不重新启动tomcat的情况下,reload某一个应用,才会造成内存泄漏。所以你只要每次重启应用都是通过重启tomcat来的话不会造成任何影响。
功成由勤,业精于勤。
级别: 秀才
UID: 60862
积分:64 加为好友
威望: 5 精华: 0
主题:7 回复:43
注册时间:2014-04-21
在线时长:0
9#   发表于:2014-06-09 09:54:09  IP:117.47.*.*
是tomcat7,可是A也是用的tomcat7,为什么B部署同样的代码就会出现问题
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
10#   发表于:2014-06-09 09:55:47  IP:182.7.*.*
你现在重启下tomcat试试
功成由勤,业精于勤。
1 2 > >| 共2页