activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ActiveMQ2011User <>
Subject Unpredictable behavior of the ActieMQ broker if the prefetch size is changed
Date Wed, 09 Feb 2011 11:37:45 GMT

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

In the queue that we are using are enough messages to consume by the
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message