activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcheckoway <>
Subject Slave not replicating consumption with Pure Master Slave
Date Thu, 25 Aug 2011 01:02:42 GMT
I'm seeing some strange behavior with ActiveMQ 5.4.2 pure master slave

5.4.2 master running on mqmaster01:

 <broker xmlns=""
brokerName="localhost" dataDirectory="${activemq.base}/data"
destroyApplicationContextOnStop="true" schedulerSupport="false"
            <transportConnector name="openwire" uri="tcp://"/>

5.4.2 slave running on mqslave01:

    <broker masterConnectorURI="tcp://mqmaster01:61616"
"false" xmlns=""
brokerName="localhost" da
taDirectory="${activemq.base}/data" destroyApplicationContextOnStop="true"
ulerSupport="false" advisorySupport="false">
            <transportConnector name="openwire" uri="tcp://"/>

Producers and consumers are using this connection URL:


Here's what I'm seeing.  I start up the master.  My producers/consumers
connect immediately (they were waiting to connect) and begin doing their

I then start up the slave (with a freshly emptied ./data dir).  The slave
connects to the master, as witnessed by this in data/activemq.log on

2011-08-24 22:51:48,833 | INFO  | Starting a slave connection between
vm://localhost#0 and tcp://mqmaster01:61616 | | main
2011-08-24 22:51:48,843 | INFO  | Slave connection between vm://localhost#0
and tcp://mqmaster01/ has been established. | | main

Shortly thereafter, a message is sent to a queue.  A consumer consumes it. 
On mqmaster01, I can see on http://mqmaster01:8161/admin/queues.jsp that the
enqueue/dequeue count went up by one, and "Number Of Pending Messages" is
zero.  All good, right?

Yeah, except mqslave01 now shows Messages Enqueued = 1, and Number Of
Pending Messages = 1.  As more messages run through the system, mqslave01's
enqueue & pending count continues to go up, but the dequeue count remains at
zero.  I don't understand why the slave isn't replicating the consumption of
these messages...

Has anybody seen this before?  Any idea what might be causing it?  Did I
screw something up in my configuration, i.e. with schedulerSupport="false"
or advisorySupport="false"?

Any help would be much appreciated...

Dan Checkoway
dcheckoway gmail com
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message