Address already in use: JVM_Bind java

后端 未结 13 2544
离开以前
离开以前 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: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. :)

提交回复
热议问题