起因:
重新部署项目的时候发现大量日志信息
停掉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
解决
