邬金盼 衡尊科技 2022-10-20 04:48 采纳率: 100%
浏览 64
已结题

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月30日
  • 已采纳回答 10月22日
  • 修改了问题 10月20日
  • 修改了问题 10月20日
  • 展开全部

悬赏问题

  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题