http://blog.aizhet.com/Server/640.html
In the development of Java EE under Windows, build eclipse+tomcat Java Web Development environment, often encounter tomcat in the application Restart service, port occupancy problem, cause unable to start the service;
Error message:
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost is already in use. The server may already is running in another process, or a system process could be using the port. To start this server you'll need to stop the other process or change the port number (s).
Analysis Reason: Is the current port 8080 is occupied, so restart the service for the occurrence of port occupancy error;
Solution:
The end of the current consumption of 8080 port services can be;
1: Start----Run-----cmd-------input netstat-abn
2: Among the results, it was found that the program name occupied by port 8080 is Javaw.exe
3: Open Task Manager----process----End process Javaw.exe;
4: Then restart the Tomcat server;
How to close a program process for a specified port
Operation-First find out the port corresponding program process PID---According to the PID to find the program name----according to the process name end process, release the port;
1:netstat-abn|findstr "8080" queries the PID of the specified port occupancy program
2:tasklist|findstr "180" View the program name of the process with PID 180
3:taskkill/f/t/im Javaw.exe forced end of a program that occupies 8080 ports javaw.exe
Shut down specified port service under Windows to resolve Tomcat port occupancy issues