java吧 关注:1,303,459贴子:12,859,257
  • 0回复贴,共1

如何解决服务停止时的内存泄漏

只看楼主收藏回复

三个线程无法正常关闭导致内存泄漏,以及若干个线程资源强制关闭。我在listtener中的contextDestroyed中把资源都close了,但是没有任何效果。有没有大佬提供解决方案。
appears to have started a thread named [commons-pool-EvictionTimer] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
appears to have started a thread named [logback-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
appears to have started a thread named [logback-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
强制关闭:
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.


1楼2020-06-28 10:44回复