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

前端 未结 16 1397
余生分开走
余生分开走 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:06

    Try to make those ports free, if netstat shows you they're free but still it doesn't run just change the ports to 6613 and 6614 in etc/broker.xml. It should help

    0 讨论(0)
  • 2021-02-12 19:09

    If you are using Windows 7, please try to disable "Internet Connection Sharing (ICS)" service.

    0 讨论(0)
  • 2021-02-12 19:10

    Windows here: Software that communicated with broker had probably hard coded port, so I couldn't change the activemq.xml

    I had turned on connection sharing for one of the connections, I've disabled it, and it helped, HUGE thaks to Bin S for this info as netstat didn't show this port as occupied!

    0 讨论(0)
  • 2021-02-12 19:11

    The above post are valid that changing openwire port to 6616 work but it might happen to you as happened to me that amqp port was also occupied so u need to change that also(from 5672 to 5762(or any other)) config according to me is:-

      <transportConnector name="openwire" uri="tcp://0.0.0.0:6616?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="amqp" uri="amqp://0.0.0.0:5762?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
    
    0 讨论(0)
提交回复
热议问题