Languages
[Edit]
EN

Intellij IDEA - can't start tomcat because of Address already in use: JVM_Bind - kill tomcat on windows from cmd level

9 points
Created by:
JustMike
26120

Problem description:

I can't start tomcat from Intellij IDEA because port 8080 is already in use. It happened when I stopped tomcat from Intellij level by clicking on stop server button. I work on windows 10.

Intellij IDEA - error running 'my_project': Unable to open debugger port (127.0.0.1:50188): java.net.BindException "Address already in use: JVM_Bind"

Intellij IDEA - error running 'my_project': Unable to open debugger port (127.0.0.1:50188): java.net.BindException "Address already in use: JVM_Bind"
Address already in use: JVM_Bind - problem

Solution:

As we can see from screenshot the port taken is 50188 on 127.0.0.1

So we just need to find PID of the process that wasn't killed in correct way and kill it from cmd level.

C:\Windows\System32>netstat -ano | findstr :50188
  TCP    192.168.0.242:50188    52.157.234.37:443      ESTABLISHED     6032

C:\Windows\System32>taskkill /PID 6032 /F
SUCCESS: The process with PID 6032 has been terminated.
kill tomcat on windows from cmd level
kill tomcat on windows from cmd level

And tomcat is up and running, screenshot:

tomcat is up and running, screenshot
tomcat up and running again

 

Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join