java.lang.Thread.sleep(Native Method)
org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:104)
15-Oct-2015 21:57:47.325 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] 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:41)
15-Oct-2015 21:57:47.355 INFO [Thread-5] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-7083"]
15-Oct-2015 21:57:47.357 INFO [Thread-5] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-7010"]
15-Oct-2015 21:57:47.358 INFO [Thread-5] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-7083"]
15-Oct-2015 21:57:47.358 INFO [Thread-5] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-7010"]
异常信息就是这样,不知道有谁遇到过这样的情况吗
2 个解决方案
#1
http://*.com/questions/26168292/tomcat-complaining-about-memory-leak-due-to-open-connection-after-shut-due-to-jd
#2
我在一个服务里也遇到了这个问题
出错后服务自动重启了,我的原因是 在声明Logger的时候把后台服务中的Logger携程了
java.lang.Thread.sleep(Native Method)
org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:104)
六月 07, 2016 3:53:51 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
六月 07, 2016 3:53:51 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/diff] is completed
出错后服务自动重启了,我的原因是 在声明Logger的时候把后台服务中的Logger携程了
private static final Logger logger = Logger.getLogger(Client.class);clsss写错了,Client.clsss在调用完就结束了,所以后台服务就出错了
#1
http://*.com/questions/26168292/tomcat-complaining-about-memory-leak-due-to-open-connection-after-shut-due-to-jd
#2
我在一个服务里也遇到了这个问题
出错后服务自动重启了,我的原因是 在声明Logger的时候把后台服务中的Logger携程了
java.lang.Thread.sleep(Native Method)
org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:104)
六月 07, 2016 3:53:51 下午 org.apache.jasper.servlet.TldScanner scanJars
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
六月 07, 2016 3:53:51 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/diff] is completed
出错后服务自动重启了,我的原因是 在声明Logger的时候把后台服务中的Logger携程了
private static final Logger logger = Logger.getLogger(Client.class);clsss写错了,Client.clsss在调用完就结束了,所以后台服务就出错了