`
rhodian
  • 浏览: 71223 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

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文件。如果遇到这种问题,可以查看该日志,可迅速定位问题原因。

分享到:
评论

相关推荐

    Proxool-0.9.1

    To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 十二月 02, 2013 8:19:43 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/...

    Tomcat报错: JDBC unregister 解决办法

    To prevent a memory leak, the JDBC Driver has been forcibly unregistered. ``` 这里,`[web application]`是你的应用名称,`[net.sourceforge.jtds.jdbc.Driver]`是具体的JDBC驱动类名。 解决这个问题有以下...

    英语六级核心词汇.doc

    - **例句**:Mobile technology has changed the way we communicate. ##### naive α. 言行自然而天真/质朴的 - **定义**:缺乏经验或过于简单的看法。 - **例句**:She had a naive view of the world. ##### ...

    Force-UTF-8-No-BOM-.vsix

    Forcibly saves all files in UTF-8 (No BOM) encoding. ForceUTF8 的核心功能在于其智能识别并转换字符串编码的能力。即使字符串中混杂着多种编码,\ForceUTF8\Encoding::toUTF8() 都能成功将其转换为统一的UTF-8...

    08年英语六级核心词汇-副词+名词

     forcibly ad. 强行地,有力地  formerly ad. 原先地,以前,从前  increasingly ad. 日益,越来越多地  inevitably ad. 必然地,不可避免地  intentionally ad. 有意地,故意地 optimistically ad. 乐观地...

    stdafx.h代码

    stdafx.h的代码// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1998 Microsoft Corporation // All rights reserved. // // This source code is only intended as a ...

    什么是python的自省

    flush: whether to forcibly flush the stream. ``` Python的自省不仅限于以上提到的函数,还有其他特性如`__dict__`属性(显示对象的属性字典)、`__doc__`属性(获取对象的文档字符串)等。自省使得代码更加动态...

    Force scrollbars-crx插件

    语言:Bahasa Indonesia,Bahasa Melayu,Deutsch,English,English (UK),English (United States),Filipino,Français,Kiswahili,Nederlands,Norsk,Tiếng Việt,Türkçe,...Forcibly enable scrollbar on sites that

Global site tag (gtag.js) - Google Analytics