Often encountering such problems in Eclipse, Tomcat fails after reboot and cannot be stopped. The best solution is to kill the process with a DOS command.
For example, the following situation:
1. View the process ID
To view information with Windows netstat:
Netstat-ano | grep 8005 TCP 127.0.0.1:8005 0.0.0.0:0 LISTENING 3740
3740 is the process ID, which is the process ID that occupies the port
Or use the JPS that comes with the JDK to see all the process information:
[Email protected] MINGW64/E/XIANGMU/SBGL (QLQ)$ jps9272 JPS3740 Bootstrap9556 oracleidelaunch
3740 is the process ID, with Bootstrap is the Tomcat process, which is consistent with the process number identified above netstat.
or directly filter, directly isolate the Tomcat process ID:
[Email protected] MINGW64/E/XIANGMU/SBGL (QLQ)$ JPS | grep Bootstrap3740 Bootstrap
2. Kill the process to
[Email protected] MINGW64/E/XIANGMU/SBGL (QLQ)$ taskkill-pid 3740-f
Reference: JPS usage: http://www.cnblogs.com/qlqwjy/p/7928410.html
Tomcat failed or failed to restart in "Eclpise" eclipse