警告: The web application [bank] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but

博客内容提及了在Java Web应用[bank]中遇到的两个警告,涉及到Druid和MySQL JDBC驱动注册与注销问题。当应用停止时,未能正确注销JDBC驱动,导致了强制卸载并可能产生内存泄漏。此外,还提到线程[Abandoned connection cleanup thread]可能未被正确停止,同样存在内存泄漏风险。最后,博主询问了在Eclipse开发环境中,代码修改导致服务器自动重启并出现这些错误的原因。
摘要由CSDN通过智能技术生成

警告: The web application [bank] 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.
一月 08, 2019 5:58:16 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
警告: The web application [bank] 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.
一月 08, 2019 5:58:16 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [bank] 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. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:64)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor W o r k e r . r u n ( T h r e a d P o o l E x e c u t o r . j a v a : 617 ) j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 745 ) 一 月 08 , 20195 : 58 : 16 下 午 o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e c h e c k S t a t e F o r R e s o u r c e L o a d i n g 信 息 : I l l e g a l a c c e s s : t h i s w e b a p p l i c a t i o n i n s t a n c e h a s b e e n s t o p p e d a l r e a d y . C o u l d n o t l o a d [ ] . T h e f o l l o w i n g s t a c k t r a c e i s t h r o w n f o r d e b u g g i n g p u r p o s e s a s w e l l a s t o a t t e m p t t o t e r m i n a t e t h e t h r e a d w h i c h c a u s e d t h e i l l e g a l a c c e s s . j a v a . l a n g . I l l e g a l S t a t e E x c e p t i o n : I l l e g a l a c c e s s : t h i s w e b a p p l i c a t i o n i n s t a n c e h a s b e e n s t o p p e d a l r e a d y . C o u l d n o t l o a d [ ] . T h e f o l l o w i n g s t a c k t r a c e i s t h r o w n f o r d e b u g g i n g p u r p o s e s a s w e l l a s t o a t t e m p t t o

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值