Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting the ActiveMQ broker, results in an error

Tags:

activemq

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.

like image 704
JME Avatar asked Mar 24 '14 16:03

JME


3 Answers

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&amp;wireFormat.maxFrameSize=104857600"/> <transportConnector name="amqp" uri="**amqp://0.0.0.0:5673**?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"/> </transportConnectors>

like image 95
sumit dugar Avatar answered Oct 15 '22 04:10

sumit dugar


I would try running netstat -anb from the command prompt and see if you can find something using port 5672.

like image 38
user3473868 Avatar answered Oct 15 '22 02:10

user3473868


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 )

like image 30
OhadR Avatar answered Oct 15 '22 04:10

OhadR