cranberry病毒导致mycat应用都崩溃解决办法
mycat用了半年,突然某天发现服务挂掉了.
ERROR | wrapper | 2018/01/18 16:00:23 | JVM exited while starting the application.
STATUS | wrapper | 2018/01/18 16:00:23 | JVM exited in response to signal SIGKILL (9).
FATAL | wrapper | 2018/01/18 16:00:23 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2018/01/18 16:00:23 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2018/01/18 16:00:23 | <-- Wrapper Stopped
重启mycat之后启动不了,日志
FATAL | wrapper | 2018/01/18 16:12:11 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2018/01/18 16:12:11 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2018/01/18 16:12:11 | <-- Wrapper Stopped
STATUS | wrapper | 2018/01/18 16:12:15 | --> Wrapper Started as Daemon
STATUS | wrapper | 2018/01/18 16:12:16 | Launching a JVM...
INFO | jvm 1 | 2018/01/18 16:12:16 | Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=64M; support was removed in 8.0
STATUS | wrapper | 2018/01/18 16:12:16 | JVM exited in response to signal SIGKILL (9).
ERROR | wrapper | 2018/01/18 16:12:16 | JVM exited while loading the application.
STATUS | wrapper | 2018/01/18 16:12:20 | Launching a JVM...
INFO | jvm 2 | 2018/01/18 16:12:20 | Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=64M; support was removed in 8.0
INFO | jvm 2 | 2018/01/18 16:12:20 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
INFO | jvm 2 | 2018/01/18 16:12:20 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
看下系统内存情况
top
不是其他问题,是CPU被吃爆了!而且cranberry进程根本杀不死,杀了之后秒重现。碰到这种情况想一下是不是有定时任务在重启它 crontab -l 一下看定时任务列表:
秒启动...
把定时任务删掉 crontab -r
然后看一下这个进程 ps -ef|grep root.sh
杀掉所有进程 kill -9 20384
然后再杀掉cranberry
killall -9 cranberry
这时候top一下就看到正常了,然后重启mycat,没问题~~
1月15号 05:38 就被放进来了~~~
20秒之后服务被中断~~