activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james <>
Subject Stuck messages and broker network failing
Date Mon, 23 Apr 2012 22:41:24 GMT

We're running ActiveMQ 5.5.0 using a network of brokers configuration with
kahadb as a persistent store.  
At some point, one of the message queues will stop delivering messages to
its consumer.  I've also noticed that there might be a connection between
this and the network of brokers failing and one of the message brokers
refusing to allow new connections.  However, it is difficult to reproduce
and can take months to happen again.

For clarity, the flow is like this:
1) broker A has messages and consumers, but will not deliver the messages to
the consumers.  The messages seem to be stuck on the connector to the other
broker B.  Broker A has the messages and consumers.
2) broker B seems to have stopped accepting new connections, at least for
the consumer which can't retrieve its messages.  Broker B can deliver
messages to Broker A and the consumer.
3) there are no log entries showing any issue with broker A, B, the network
connector, or the consumer.
4) restarting the consumer doesn't work in this scenario because it will
only reconnect to broker A, reestablishing the current situation.
5) restarting the brokers (or sometimes just broker B) will work.

Our configuration is below and identical for both brokers except that one
has the network connector and the other doesn't.

What causes the network of brokers to break?  
What causes one broker to stop accepting connections (no log error being
What causes the messages to be stuck on the working broker with the working
consumer with the messages apparently bound for the other broker?

I've seen suggestions of prefetch sizes and caching fixing the issues, but
looks like these were fixed before 5.5.0 release (true?).

    <broker xmlns=""
brokerName="localhost" dataDirectory="${activemq.base}/data"
destroyApplicationContextOnStop="true" useJmx="true">

                <policyEntry topic=">" producerFlowControl="true"
                    <vmCursor />
                                <policyEntry queue="Queue1"
producerFlowControl="true" memoryLimit="10mb"/>
                                <policyEntry queue=">"
producerFlowControl="true" memoryLimit="1mb"/>

      <networkConnector name="msg1-2-nc"
        duplex="true" dynamicOnly="true" networkTTL="2" />

            <kahaDB directory="${activemq.base}/data/kahadb"/>

          <plugins>  <statisticsBrokerPlugin/> </plugins>

                    <memoryUsage limit="500mb"/>

            <transportConnector name="openwire" uri="tcp://"
               updateClusterClients="true" rebalanceClusterClients="true"
    <import resource="jetty.xml"/>

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message