Several ports 8005 8080 8009 required already use
Many times while development whenever you start server you see below exception:
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost 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).
Solution: This happens if some process in your local computer already using port which your sever is trying to connect. There are many ways available to find port which is in use:
- Netstat command is one of them which could list currently used ports. Please use “-an” to see all listening and connections ports on numeric form as below:
- Or you cold use utility tool which will show you all the ports which is in use and kill them if you don’t want. One of my favorite tools is TCPView download from here which I use often. You could directly go its web page and download zip/unzip it in any folder. Double click Tcpview.exe to open it. You could select any port which you want close as below: