Skip to content

Instantly share code, notes, and snippets.

@jfranciscos4
Forked from appikonda/KillProcces.md
Created July 18, 2018 20:17
Show Gist options
  • Save jfranciscos4/cc01a27f14ebf5e9ea223af778d7ffe5 to your computer and use it in GitHub Desktop.
Save jfranciscos4/cc01a27f14ebf5e9ea223af778d7ffe5 to your computer and use it in GitHub Desktop.
Address already in use: JVM_Bind <null>:8080

###Exception:

Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8080
        at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:407)
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
        at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
        ... 31 more

###Solution:

  1. Run Command Prompt as Adminstrator
  2. netstat -a -o -n
C:\WINDOWS\system32>netstat -a -o -n

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       900
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:1158           0.0.0.0:0              LISTENING       4920
  TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING       8984
  TCP    0.0.0.0:3938           0.0.0.0:0              LISTENING       4180
  TCP    0.0.0.0:5520           0.0.0.0:0              LISTENING       4920
  TCP    0.0.0.0:5985           0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       10600
  TCP    0.0.0.0:47001          0.0.0.0:0              LISTENING       4
  TCP    0.0.0.0:49664          0.0.0.0:0              LISTENING       644

Find the PID for Local Address 0.0.0.0:8080 (In this example: 10600)

3.taskkill /F /PID 10600

C:\WINDOWS\system32>taskkill /F /PID 10600
SUCCESS: The process with PID 10600 has been terminated.

Done!

Restart the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment