Activemq can't run due to address already in use error

前端 未结 16 1376
余生分开走
余生分开走 2021-02-12 18:06

How to solve the error?

Java Runtime: Oracle Corporation 1.7.0_05 E:\\Program Files\\Java\\jdk1.7.0_05\\jre
  Heap sizes: current=1004928k  free=994439k  max=100         


        
16条回答
  •  醉梦人生
    2021-02-12 19:02

    I faced the same problem with the error being:

    ERROR | Failed to start ActiveMQ JMS Message Broker (localhost, null). Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.BindException: Address already in use

    Following steps maybe useful:

    1. find the process id that is using this port (in your case, 61616). In command promt write: netstat -a -o -n and look at the process id.
    2. Next kill the process from Task Manager or taskkill /F /PID "process id"

    http://sourcecode-kk.blogspot.in/2013/02/kill-process-running-on-certain-port-in.html

    Cheers.

提交回复
热议问题