不惑先师 2022-10-19 20:48 采纳率: 100%
浏览 71
已结题

tomcat运行中的war包被自动再次启动,导致宕机

war包部署到Linux云服务器tomcat,启动并运行一段时间后。该war包突然再次被启动,导致磁盘读取使用率瞬间拉满,不仅网站打不开了,连SSH也连不上了,磁盘读取飙升后CPU使用率也随之飙到95%以上。直到该进程崩溃,各项指标才恢复正常。求指教,为什么会出现war包被自动重复启动的情况呀?!

如下为主要问题点


```java
19-Oct-2022 21:46:06.030 INFO [Catalina-utility-2] org.apache.catalina.core.StandardContext.reload Reloading Context with name [] has started
2022-10-19 21:46:06.042  INFO 27765 --- [alina-utility-2] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'
2022-10-19 21:46:06.042  INFO 27765 --- [alina-utility-2] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'
19-Oct-2022 21:46:06.052 WARNING [Catalina-utility-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [mysql-cj-abandoned-connection-cleanup] 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:144)
 com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:85)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 java.lang.Thread.run(Thread.java:750)
19-Oct-2022 21:46:10.134 INFO [Catalina-utility-2] 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.
19-Oct-2022 21:46:10.711 INFO [mysql-cj-abandoned-connection-cleanup] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
    java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1432)
        at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1057)
        at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkThreadContextClassLoader(AbandonedConnectionCleanupThread.java:117)
        at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:84)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.5.RELEASE)

2022-10-19 21:46:11.170  INFO 27765 --- [alina-utility-2] com.hz.apprun                            : Starting apprun v1.0-SNAPSHOT on iZm5efl64vb981vxw874n4Z with PID 27765 (/home/pestserver/apache-tomcat-9.0.65/ROOT/WEB-INF/classes started by root in /home/pestserver/apache-tomcat-9.0.65/bin)
2022-10-19 21:46:11.174  INFO 27765 --- [alina-utility-2] com.hz.apprun                            : No active profile set, falling back to default profiles: default
2022-10-19 21:46:13.132  INFO 27765 --- [alina-utility-2] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1636 ms
2022-10-19 21:46:14.647  INFO 27765 --- [alina-utility-2] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2022-10-19 21:46:15.035  WARN 27765 --- [alina-utility-2] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
2022-10-19 21:46:15.322  WARN 27765 --- [alina-utility-2] o.s.b.a.f.FreeMarkerAutoConfiguration    : Cannot find template location(s): [classpath:/templates/] (please add some templates, check your FreeMarker configuration, or set spring.freemarker.checkTemplateLocation=false)
2022-10-19 21:46:15.454  INFO 27765 --- [alina-utility-2] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
执行定时任务
2022-10-19 21:46:15.539  INFO 27765 --- [alina-utility-2] com.hz.apprun                            : Started apprun in 5.095 seconds (JVM running for 115577.607)
19-Oct-2022 21:46:15.562 INFO [Catalina-utility-2] org.apache.catalina.core.StandardContext.reload Reloading Context with name [] is completed
2022-10-19 21:46:16.639  INFO 27765 --- [o-8083-exec-913] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2022-10-19 21:46:16.659  INFO 27765 --- [o-8083-exec-913] o.s.web.servlet.DispatcherServlet        : Completed initialization in 19 ms

```

展开全部

  • 写回答

4条回答 默认 最新

查看更多回答(3条)
编辑
预览

报告相同问题?

问题事件

  • 系统已结题 10月29日
  • 已采纳回答 10月22日
  • 修改了问题 10月20日
  • 修改了问题 10月19日
  • 展开全部

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部