Two or more instances of activeMQ are not discovered due to the same activemq.home

Solution Verified - Updated -

Issue

  • Two or more activeMQ instances are not discovered;
  • The agent.log file logs the following:
ERROR [ResourceDiscoveryComponent.invoker.daemon-19] (org.jbosson.plugins.fuse.FuseServerDiscoveryComponent)- Multiple Resources with the same key (ActiveMQ Server
{/home/amq/apache-activemq-5.11.0.redhat-620133}) were discovered - none will be reported to the plugin container! This most likely means that there are multiple java processes running with the same value for the activemq.home system property specified on their command lines. Here is the list of Resources: [key=ActiveMQ Server{/home/amq/apache-activemq-5.11.0.redhat-620133}
,name=ActiveMQ Server {/home/amq/apache-activemq-5.11.0.redhat-620133} ActiveMQ Server,type=ActiveMQ Server,version=5.11.0.redhat-620133,description=ActiveMQ Server Process, monitored via Sun JVM Attach API]

Environment

  • Red Hat JBoss A-MQ (AMQ) 6.2.0
  • Unzipped jboss-a-mq archive file and copied apache-activemq-5.11.0.redhat-620133-bin.zip located at $AMQ-HOME/extras folder;
  • Unzipped apache-active-5.11.0.redhat-620133-bin.zip archive file;
  • Run the following to create new instances:
$ /bin/activemq create instanceA
$ /bin/activemq create instanceB
  • Modified jetty.xml and activemq.xml files and port values;
  • Started both instances:
$ cd <INSTANCEA-HOME>/bin
$ ./instanceA console
$ cd <INSTANCEB-HOME>/bin
$ ./instanceB console

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In