Address already in use: JVM_Bind java

后端 未结 13 2493
离开以前
离开以前 2020-11-30 03:33

Some times whenever I restart the application, which is built on Java Struts Mysql and Jboss 4.05 Version I get the error as Address already in use: JVM_Bind

相关标签:
13条回答
  • 2020-11-30 04:04

    You can try deleting the Team Server credentials, most likely those will include some kind of port in the server column. Like https://wathever.visualstudio.com:443

    Go to Windows/Preferences expand Team then Team Foundation Server go to Credentials and remove whichever is there.

    0 讨论(0)
  • 2020-11-30 04:06

    Address already in use: JVM_Bind

    means that some other application is already listening on the port your current application is trying to bind.

    what you need to do is, either change the port for your current application or better; just find out the already running application and kill it.

    on Linux you can find the application pid by using,

    netstat -tulpn
    
    0 讨论(0)
  • 2020-11-30 04:07

    I usually come across this when the port which the server (I use JBoss) is already in use

    Usual suspects

    1. Apache Http Server => turn down the service if working in windows.
    2. IIS => stop the ISS using
    3. Skype =>yea I got skype attaching itself to port 80

    To change the port to which JBoss 4.2.x binds itself go to:

    "C:\jboss4.2.2\server\default\deploy\jboss-web.deployer\server.xml"

    here default is the instance of the server change the port here :

    <Connector port="8080" address="${jboss.bind.address}" >

    In the above example the port is bound to 8080

    0 讨论(0)
  • 2020-11-30 04:08

    The quick answer on how to prevent it is that you most likely need to stop JBoss before starting it again.

    You should be able to call the "Terminate" button in the Console view to shutdown the server.

    0 讨论(0)
  • 2020-11-30 04:10

    Open command line and type: netstat -a -o -n or tasklist to see currently running processes. Find port that related to Java and type: taskkill /F /PID <your PID number>. Click Enter.

    0 讨论(0)
  • 2020-11-30 04:13

    This recently happen to me when enabling JMX on two running tomcat service within Eclipse. I mistakenly put the same port for each server.

    Simply give each jmx remote a different port

    Server 1

    -Dcom.sun.management.jmxremote.port=9000
    

    Server 2

    -Dcom.sun.management.jmxremote.port=9001
    
    0 讨论(0)
提交回复
热议问题