activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aparsuri <>
Subject Problem with producer flow control and message dropping
Date Mon, 05 Dec 2011 18:30:39 GMT

I am trying to create an activeMQ configuration ( for the broker
which would make me achieve the following scenario -
1. If the consumer is slow, the producer SHOULD NOT slow down.
2. After the queue gets full in the broker, the broker should start writing
to disk and keep doing so (for an extremely large number of messages ( > 100
million or more or depending on the disk size available at least a few

I tried a lot of combinations for the config and either I have the producer
slowing down to catch up with the consumer or, I have a LOT of dropped
messages (not even close to the amount mentioned). The configs I have
currently is follows -

<broker xmlns=""
brokerName="localhost" dataDirectory="${activemq.base}/data"
		<policyEntry topic=">" producerFlowControl="false">
					<oldestMessageEvictionStrategy />
					<constantPendingMessageLimitStrategy limit="100000000"/>
            <managementContext createConnector="false"/>

            <kahaDB directory="${activemq.base}/data/kahadb"/>
                    <memoryUsage limit="64 mb"/>
                    <storeUsage limit="100 gb"/>
                    <tempUsage limit="10 gb"/>
            <transportConnector name="openwire"


I tried to comment to systemUsage tag altogether and that does not seem to
effect anything. I also tried to change the number for
constantPendingMessageLimitStrategy and it did not seem to change a whole
lot (lot of messages are still being dropped). I also tried
<prefetchRatePendingMessageLimitStrategy multiplier="2"/> instead of
constantPendingMessageLimitStrategy  but, that doesn't seem to work at all.
The producers kept slowing down rather than messages being dropped. 

Any help would be appreciated. Thank you.

- Apar Suri.

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

View raw message