the JDBC Driver has been forcibly unregistered问题解决

最近调试环境,启动tomcat遇到如下问题:

严重: The web application [/service] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
一月 25, 2018 11:58:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/service] 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.
一月 25, 2018 11:58:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] 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.
一月 25, 2018 11:58:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] appears to have started a thread named [New I/O worker #1] but has failed to stop it. This is very likely to create a memory leak.
一月 25, 2018 11:58:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] appears to have started a thread named [New I/O worker #2] but has failed to stop it. This is very likely to create a memory leak.
一月 25, 2018 11:58:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] appears to have started a thread named [New I/O worker #3] but has failed to stop it. This is very likely to create a memory leak.
一月 25, 2018 11:58:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/service] appears to have started a thread named [New I/O worker #4] but has failed to stop it. This is very likely to create a memory leak.

 

查看catalina.out日志,前前后后都没有任何错误信息。

 

网上有说热部署造成的,有说jar包冲突造成的,也有说可以忽略的,全部试了一遍以后,并不能解决问题。

 

其实造成这个问题的原因有很多种,比如数据库连不上,中间件连接初始化失败等等。但是,都不会输出在catalina.out,而是输出到logs目录下的localhost.201x-xx-xx.log文件。如果遇到这种问题,可以查看该日志,可迅速定位问题原因。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值