Child pages
  • Running multiple activemq instances on the same server
Skip to end of metadata
Go to start of metadata

How to configure multiple ActiveMQ instances in a single base installation

As this is somewhat undocumented on the apachemq web site, this is an extract of what was done on sandkasse-01 in order to run multiple activemq instances.

cd /usr/local/apache-activemq-5.5.0
bin/activemq create instance1
bin/activemq setup ~/.activemqrc-instance-instance1
ln -s activemq bin/activemq-instance-instance1
bin/activemq create instance2
bin/activemq setup ~/.activemqrc-instance-instance2
ln -s activemq bin/activemq-instance-instance2
bin/activemq create instance3
bin/activemq setup ~/.activemqrc-instance-instance3
ln -s activemq bin/activemq-instance-instance3

each instance has its own directory tree below /usr/local/apache-activemq-5.5.0, ie. /usr/local/apache-activemq-5.5.0/instance1, /usr/local/apache-activemq-5.5.0/instance2, ...

each instance had its port numbers in <instance>/conf/activemq.xml and conf/jetty.xml edited, so instance1 listens on port 60001 and is managed on port 8001, instance2 on 60002 and 8002, instance3 on 60003 and 8003

To debug or trace an instance start it as follows:

$ sh instance1/bin/instance1 console

or with SSL debugging enabled:

$ SSL_OPTS="" sh instance1/bin/instance1 console


  • No labels