`
michaellou
  • 浏览: 54647 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it w

 
阅读更多
registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped.

org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/rdms] registered the JBDC 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.


后来在网上搜了搜,还是有不少人说这个问题吧,感觉出这个问题的原因可能是多种多样,并不是某个固定原因吧。我就简单说说我搜到一个的情况,和我自己的这个问题的解决。
有篇老外的文章http://confluence.atlassian.com/pages/viewpage.action?pageId=218275753
它里有提到个原因:
Causes

There is a ?memory leak detection feature introduced in Tomcat 6.0.25 that attempts to log objects that have failed to be Garbage Collected even though they been marked for removal. As the Tomcat and JVM is being shutdown, these messages are not applicable in this situation.



大概就是说tomcat 6.025以后引入了内存泄露侦测,对于垃圾回收不能处理的对像,它就会做日志。
老外提出的办法是要么用旧版本的tomcat,要么就在tomcat的server.xml文件中,把
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>;

这个监听给关了。我试了把这个监听关了,就不会再报上面那个信息,但是这样子运行tomcat会不会有其他的问题,我就不得而知了。
分享到:
评论

相关推荐

    Proxool-0.9.1

    SEVERE: The web application [/xxx] 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 ...

    关闭tomca报错t,网络整理

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

    Tomcat报错: JDBC unregister 解决办法

    主要介绍了Tomcat报错: JDBC unregister 解决办法的相关资料,需要的朋友可以参考下

    DriverStudio 3.2 For VisualStudio 2005 补丁

    &lt;br&gt;原文件说明: &lt;br&gt;Compuware DriverStudio – DriverSuite Version 3.2 &lt;br&gt;Version 3.2 VisualStudio 2005 Integration fix. The purpose of this update is to allow DriverStudio – ...

    Senfore_DragDrop_v4.1

    I have not been able to reproduce these errors, but I believe the following work around will fix the problem: In the project options of *all* projects which uses these components, add the following...

    Unregister-MissingMSIs.ps1

    Windows Installer注册表修复工具 作者源址:https://gist.github.com/heaths/77fbe0b44496960fab25c2eb0b9e8475

    dx修复工具

    The Online Edition is similar to the Standard Edition, but the files for repairing are not included in Online Edition. Consequently, Internet connection is required when it is repairing the files. ...

    plsqldev14.0.0.1961x64多语言版+sn.rar

    The new viewer allows you to ignore differences in case and white space as usual, but it can also ignore differences in comments. Program Window enhancements The Program Window now highlights ...

    com.zend.php.core_9.0.0.201111081531.jar

    第一步:如果已经安装过Zend Studio 9.0的,请打开Zend Studio 9.0,在菜单中“help&gt;Unregister”,如果显示是灰的跳过此步退出Zend Studio。如果显示可以点击的请点击,这时Zend Studio会重启,重启到要求你填注册码...

    plsqldev14.0.0.1961x32多语言版+sn.rar

    The new viewer allows you to ignore differences in case and white space as usual, but it can also ignore differences in comments. Program Window enhancements The Program Window now highlights ...

    ActiveX Manager

    How many times have you tried to register/unregister an ActiveX control (OCX) and wished there was a better way to do it then REGSVR32? ActiveX Manager enables users and developers to manage ...

    evid4226patch223d-en.zip_EvID4226Patch22_EvID4226Patch223d_EvID4

    Please place this entire folder (complete with contents) into your System32 directory folder ...Double click on the UnRegister .bat file to UnRegister It s as simple as that! Cheers

    VB编程资源大全(英文控件)

    It is like a combo box, but it will drop down a calculator, which you can use for calculation&lt;END&gt;&lt;br&gt;39,ColorPicker1.zip It is a color picker control, which is almost similar to those you find in...

    w5100驱动程序

    Changed W5100 Driver(v1.2). Removed WinAVR-20050214 codes(UART). Changed check_leaseIP() function in DHCP.C. * ---------- ------- --------------------------------------------...

    softap_ap6212a0_tinav2.1_验证通过_旧版本的系统_20170915_1223没有外层目录.7z

    W:\softap_ap6212a0_tinav2.1\build\netfilter.mk $(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)xt_LOG)) $(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)nf_...

    libdump_sr.zip

    Run ..\LibDump\LibDump.EXE using the command line option -Unregister b. Delete ..\LibDump. -------------------------- 4. COMMENTS AND BUG REPORT -------------------------- If you have any comments,...

    gertt点阵图读取器(opengl)

    MessageBox(NULL,"Failed To Register The Window Class.","ERROR",MB_OK|MB_ICONEXCLAMATION); return FALSE; // Return FALSE } if (fullscreen) // Attempt Fullscreen Mode? { ...

    OSGI in Action

    Introducing lifecycle to the paint program 73 ■ The OSGi framework’s role in the lifecycle 75 ■ The bundle activator manifest entry 76 ■ Introducing the lifecycle API 77 ■ Lifecycle state diagram...

    Android代码-如何自己实现一个 EventBus

    EventBus.unRegister(this) 实现事件 Event 实体类(实现 IEvent 接口) class XXXXEvent: IEvent 发送事件 EventBus.post(XXXEvent()) 利用注解实现事件订阅执行方法 tag 用于细化区分事件 mode 方法执行线程 @...

    opengl画图程序附带源代码

    MessageBox(NULL,"Failed To Register The Window Class.","ERROR",MB_OK|MB_ICONEXCLAMATION); return FALSE; // Return FALSE } if (fullscreen) // Attempt Fullscreen Mode? { DEVMODE dmScreenSettings; //...

Global site tag (gtag.js) - Google Analytics