殇依依 2018-07-30 07:09 采纳率: 100%
浏览 4798

linux下tomcat运行一段时间后 异常停止

停止时会打印如下日志:

30-Jul-2018 13:23:56.786 INFO [Thread-8] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-10001"]
30-Jul-2018 13:23:56.839 INFO [Thread-8] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-9009"]
30-Jul-2018 13:23:56.890 INFO [Thread-8] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
2018-07-30 13:23:56,894 [localhost-startStop-2] INFO [org.springframework.web.context.support.XmlWebApplicationContext] - Closing WebApplicationContext for namespace 'spring-servlet': startup date [Mon Jul 30 12:29:02 CST 2018]; parent: Root WebApplicationContext
2018-07-30 13:23:56,898 [localhost-startStop-2] INFO [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] - Shutting down ExecutorService 'qbScheduler'
2018-07-30 13:23:56,918 [localhost-startStop-2] INFO [org.springframework.web.context.support.XmlWebApplicationContext] - Closing Root WebApplicationContext: startup date [Mon Jul 30 12:28:53 CST 2018]; root of context hierarchy
2018-07-30 13:23:56,925 [localhost-startStop-2] INFO [com.alibaba.druid.pool.DruidDataSource] - {dataSource-1} closed
30-Jul-2018 13:23:56.930 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [hours] 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.
30-Jul-2018 13:23:56.931 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [hours] 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.
30-Jul-2018 13:23:56.939 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [hours] appears to have started a thread named [MySQL Statement Cancellation Timer] 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.Object.wait(Object.java:502)
java.util.TimerThread.mainLoop(Timer.java:526)
java.util.TimerThread.run(Timer.java:505)
30-Jul-2018 13:23:56.940 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [hours] created a ThreadLocal with key of type java.lang.ThreadLocal and a value of type com.alibaba.druid.wall.spi.WallVisitorUtils.WallTopStatementContext but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

图片说明

  • 写回答

11条回答

  • 殇依依 2018-07-30 07:14
    关注

    系统是centos 7.2
    tomcat是8.5版本
    jdk是1.8

    评论

报告相同问题?

悬赏问题

  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services