How to solve: Starting of Tomcat failed, the server port 8080 is already in use

To solve this problem, we check which process has binded to the port and kill this process. Your tomcat should work again then.

Here is step by step how to solve this problem:


1. Checking network and Internet connections

  • Windows:
netstat -aon | find "8080"
  • Linux:
netstat -tulpn | grep '8080'

You will get something like this:

  TCP               LISTENING       3556
  TCP    [::]:8080              [::]:0                 LISTENING       3556
  TCP    [::1]:8080             [::1]:53098            TIME_WAIT       0
  TCP    [::1]:8080             [::1]:53100            TIME_WAIT       0


2. Checking which process id has binded to your port

In the above, the process id that has binded to 8080 port is 3556.


3. Kill the process 

  • Windows:
taskkill /f /pid 3556
  • Linux:
kill -9 3556

You are done! Try to start Tomcat again please and good luck :]