起因:
重新部署項目的時候發現大量日志信息
停掉Tomcat
日志還在繼續
錯誤信息
Illegal access: this web application instance has been stopped already. Could not load org.apache.zookeeper.proto.WatcherEvent.
The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:744) at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:94) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:366) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
分析
查看端口
netstat -antp |grep 9999
ps -ef |grep tomcat_9999
發現大量的進程
kill -9 pid
解決