Address already in use: JVM_Bind java

后端 未结 13 2495
离开以前
离开以前 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:14

    It can be also caused by double definition of port 8080 in ..\tomcat\conf\server.xml :

    <Connector port="8080"
               enableLookups="false" redirectPort="8443" debug="0"/>
    <Connector port="8080"
               enableLookups="false" address="127.0.0.1" maxParameterCount="30000"/>
    
    0 讨论(0)
  • 2020-11-30 04:16

    In windows this scenario happens when Eclipse crashes without a clean shutdown it will have the local Jetty or Tomcat server keep running. When you reopen Eclipse and try to start server again this will lead to the "Address already in use: JVM_Bind"

    You can solve this by opening Task Manager and find the javaw.exe process and ending it.

    Then you can restart the server on Eclipse.

    enter image description here

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

    I had the same on Windows. My solution was to get which port the debug wants to connect to. (In IntelliJ a red rectangle already giving the info: "Error running Tomcat: Unable to open debugger port (127.0.0.1:XXXXX): ... Already in use...") Let's say XXXXX is the port number. Then i searched for the problem and the PID in a cmd window:

    netstat -ano | find "CLOSE_WAIT" | find ":XXXXX"
    

    I got the PID number as the last number in the result line. (Let's say YYYY) Finally:

    TASKKILL /PID YYYY
    

    An extra info: Winscp logged out meanwhile, probably it was causing my problem. :)

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

    please try following options for JVM binding exception:

    1. start and stop the server. and check the server process ids and kill and stop the server.
    2. go to control panel->administrative tool-> service-> check all server and stop all the servers and then start your own server.
    3. change the Browser which your using. for example if your using IE ,change it to Mozilla firefox.
    0 讨论(0)
  • 2020-11-30 04:21

    That error means that the you are trying to create a new ServerSocket on a port already in use by another ServerSocket. So try to make your application closing all sockets and connections you know about and be sure your application is completely terminated. Also check if there is another proces you launched by your program.

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

    I was having this problem too. For me, I couldn't start/stop openfire (it said it was stopped, but everything was still running)

    sudo /etc/init.d/openfire stop
    sudo /etc/init.d/openfire start
    

    Also, restarting apache did not help either

    sudo /etc/init.d/apache2 restart
    

    The errors were inside:

    /opt/openfire/logs/stderror.log
    Error creating server listener on port 5269: Address already in use
    Error creating server listener on port 5222: Address already in use
    

    The way I fixed this, I had to actually turn off the server inside the admin area for my host.

    0 讨论(0)
提交回复
热议问题