Did you read and apply the Stuck Messages section of the page you linked? Also, is your F5 configured to make clients sticky to a particular broker? ActiveMQ is not like a web server where each request is stateless; you can't bounce a connected client between brokers and have it behave correctly. There are URI options that will let your clients automatically do their own load balancing, if you find you don't trust what the F5 is doing. See the randomize URI option on http://activemq.apache.org/failover-transport-reference.html.
I'm not sure what happens if your network transport connects to yourself. You might try taking the current host out of the networkConnector in each host's config. Finally, I assume the F5 isn't doing load balancing on the connections between the between... Tim On Jul 19, 2015 4:23 AM, "Cadmean" <hzcadm...@hotmail.com> wrote: > I have built a broker network with 4 brokers and 5000 producer(sending 1 > message/min) and 5 consumers(connecting to the same broker). A F5 load > balancer is used to provide load balance service. > > All the borker have the same network setting in activemq.xml: > > <networkConnector > uri="static:(tcp://host1,tcp://host2,tcp://host3,tcp://host4)" > duplex="false" networkTTL="2" dynamicOnly="true" /> > > and I also set the replayWhenNoConsumer="true" for all the queues in > destination policy. > > The problem is: > 1. if I remove the setting for networkTTL and dynamicOnly, when I restart > the consumers, some of the messages stucks in the brokers. All of them are > not from the local producer. Sometimes they will block the queue, sometimes > they just stay in the queue and cannot be consumed. > > 2. after changing the xml to networkTTL=2 and dynamicOnly=true, some > messages even from local producers accumulates. > > I have checked the doc in the website: > http://activemq.apache.org/networks-of-brokers.html > <http://activemq.apache.org/networks-of-brokers.html> . But I can't get > the > answer. > Is there anything wrong with the network setting? > > Enviroment: > Suse Linux 11 sp2,JDK 1.7 > the jvm memory is set to 2G > ActiveMQ Version: 5.10.0 > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/message-stucks-in-4-brokers-network-tp4699427.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >