I am trying to start the activemq broker on a Windows machine by following the instructions at
http://activemq.apache.org/getting-started.html#GettingStarted-StartingActiveMQ
After downloading the Windows binaries, I changed to the installation directory and launched the broker using bin/activemq as instructed. The launch fails and after scanning the wall of text I found the following error.
ERROR | Failed to start Apache ActiveMQ ([localhost, ID:[Computer ID]:1], java.io.IOException: Transport Connector could not be registered i
n JMX: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1
000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address al
ready in use: JVM_Bind)
The address already in use caused me to believe that another amqp broker, such as RabbitMQ or Qpid(both of which are installed), might have allocated the connection so I restarted my computer but with no success on eliminating the error.
Can anyone give me some ideas on what to try to get ActiveMQ running properly.
Change the amqp port in activemq_home/conf/activemq.xml to something else like 5673 and restart activemq
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="**amqp://0.0.0.0:5673**?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
I would try running netstat -anb
from the command prompt and see if you can find something using port 5672.
I would try running netstat -nlp from the command prompt and see if you can find something using port 5672. then use the process-id to kill this process (kill -9 )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With