tomcat异常关闭:tomcat appears to still be running with PID 1091

Recently, because of frequent power outages, the server needs to be shut down frequently. It can't get up when tomcat is restarted.

Cause: tomcat shuts down abnormally, or forced termination (such as power failure, etc....). The
general cause of the problem is that when LINUX shuts down tomcat, it will record a Pid file. At this time, after the abnormal shutdown, the pid file still exists. And when we were about to shut down, he said that the pid no longer exists in tomcat, and when we opened it, the pid seemed to be in use. 

Solution 1: First click ./shutdown.sh, turn off a few more times and re-open to see if it is resolved
Solution 2:
          1, lsof -i: 8084 //8084 is tomcat port
          2, netstat -tunlp|grep 8084 //8084 is tomcat
          Above 1/2 of the port    , you can check which process the specified port is occupied by
          kill -9 19564 //kill -9 is the kill port pid is the corresponding process number
       

Guess you like

Origin blog.csdn.net/sulu0416/article/details/86932336