Sunday 3 January 2016

Kill tomcat server running on port in windows

If tomcat server is running in eclipse or any other IDE and if the IDE is closed accidentally, without stopping the server running, then next time when we open the IDE and start the server, we will be getting exception related to port number already in use.

            Several ports (8005, 8085, 8009) required by Tomcat7.0.35 are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
This is because, the port used by the server is not fred.

Solution
 Open command prompt and type the following commands to kill the process using the port number.

Netstat
               
This command displays the port numbers and network connections that are in use.
 Taskkill

This command kills the processes that are running in the windows machine.

No comments:

Post a Comment