mysql d3p0连接池_用C3P0做数据库连接池,在Tomcat运行项目中运行项目,出现了貌似内存泄露的问题,很困扰,请大神指点...

在使用C3P0作为MySQL数据库连接池的Java Web应用/JavaWebAuthority在Tomcat服务器上运行时,遇到了内存泄漏的问题。应用在停止时未能正确注销JDBC驱动[com.mysql.jdbc.Driver]并停止相关线程,如[Timer-1]、C3P0的Helper Threads以及Abandoned connection cleanup thread,这可能导致严重的内存泄漏。开发者寻求解决方案。
摘要由CSDN通过智能技术生成

2014-9-2820:21:35org.apache.catalina.loader.WebappClassLoaderclearReferencesJdbc严重:Thewebapplication[/JavaWebAuthority]registeredtheJDBCdriver[com.mysql.jdbc.Driver]but...

2014-9-28 20:21:35 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc

严重: The web application [/JavaWebAuthority] 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.

2014-9-28 20:21:35 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

严重: The web application [/JavaWebAuthority] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.

2014-9-28 20:21:35 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

严重: The web application [/JavaWebAuthority] appears to have started a thread named [C3P0PooledConnectionPoolManager-Helper Thread-#0] but has failed to stop it. This is very likely to create a memory leak.

2014-9-28 20:21:35 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

严重: The web application [/JavaWebAuthority] appears to have started a thread named [C3P0PooledConnectionPoolManager-Helper Thread-#1] but has failed to stop it. This is very likely to create a memory leak.

2014-9-28 20:21:35 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

严重: The web application [/JavaWebAuthority] appears to have started a thread named [C3P0PooledConnectionPoolManager-Helper Thread-#2] but has failed to stop it. This is very likely to create a memory leak.

2014-9-28 20:21:35 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

严重: The web application [/JavaWebAuthority] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.

当我第一次发布时没有问题,在浏览器里面点几下,然后再次发布就会出现上面的严重消息,我的财富值不够了,希望能帮我解决啊,

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值