2 qq 35907442 qq_35907442 于 2017.01.12 09:51 提问

报如下错误求大神指导 试了好多方法 都解决不了 每次重启mysql就好了

2017-1-11 12:05:50 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2017-1-11 12:05:50 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2017-1-11 12:05:50 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.
2017-1-11 12:05:50 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.
2017-1-11 12:05:50 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak.
2017-1-11 12:05:50 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Prototyper] but has failed to stop it. This is very likely to create a memory leak.

4个回答

u012131702
u012131702   2017.01.12 10:12

To prevent a memory leak

zhangpan_soft
zhangpan_soft   2017.01.12 10:18

你每次用完连接之后没有关闭连接,导致内存泄漏,所以就重启mysql就好了!注意每次关闭连接(用完之后),To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

zhangpan_soft
zhangpan_soft 回复qq_35907442: 用到谁关闭谁,操作完成之后
11 个月之前 回复
zhangpan_soft
zhangpan_soft 回复qq_35907442: 你不是是拿到connection了吗?调用collection.close()方法就关闭了,还有PreparedStatement,Statement,ResultSet都需要关闭,都是close()方法
11 个月之前 回复
qq_35907442
qq_35907442 那应该怎么解决呢 如何是吸纳每次关闭连接呢 求您指导下
11 个月之前 回复
zzhao114
zzhao114   2017.02.08 18:22

楼主解决了么。。。我在用spring管理hibernate也出现这种情况了。。。

zzhao114
zzhao114   2017.02.08 18:23

但是不影响使用,,然后我改用属性文件配置就没事了。。。。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!