We encountered a strange behavior if we change the prefetch size for the
consumers. We have two threads that receives message. The first one fetch
some messages and is then interrupted without closing the connection to the
broker. If the second thread is created it can't receive any messages. In
this scenario we don't changed the default prefetch limit.

So if change the prefetch to 50 for example, the second receives messages.
This works.

If we set the prefetch limit to 600 or above, the second thread receives
some message but slows down till no more message is received.

This behavior isn't understood by us because the prefetch size is the number
of messages the broker will deliver to the consumer without acknowledge
these.

In the queue that we are using are enough messages to consume by the
clients.
-- 
View this message in context: 
http://activemq.2283324.n4.nabble.com/Unpredictable-behavior-of-the-ActieMQ-broker-if-the-prefetch-size-is-changed-tp3297083p3297083.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to