You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2012/06/22 16:17:20 UTC
svn commit: r1352900 - /activemq/trunk/assembly/src/release/conf/activemq.xml
Author: dejanb
Date: Fri Jun 22 14:17:20 2012
New Revision: 1352900
URL: http://svn.apache.org/viewvc?rev=1352900&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3893 - adjust topic policy in default config
Modified:
activemq/trunk/assembly/src/release/conf/activemq.xml
Modified: activemq/trunk/assembly/src/release/conf/activemq.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/conf/activemq.xml?rev=1352900&r1=1352899&r2=1352900&view=diff
==============================================================================
--- activemq/trunk/assembly/src/release/conf/activemq.xml (original)
+++ activemq/trunk/assembly/src/release/conf/activemq.xml Fri Jun 22 14:17:20 2012
@@ -48,10 +48,18 @@
<destinationPolicy>
<policyMap>
<policyEntries>
- <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
- <pendingSubscriberPolicy>
- <vmCursor />
- </pendingSubscriberPolicy>
+ <policyEntry topic=">" producerFlowControl="true">
+ <!-- The constantPendingMessageLimitStrategy is used to prevent
+ slow topic consumers to block producers and affect other consumers
+ by limiting the number of messages that are retained
+ For more information, see:
+
+ http://activemq.apache.org/slow-consumer-handling.html
+
+ -->
+ <pendingMessageLimitStrategy>
+ <constantPendingMessageLimitStrategy limit="1000"/>
+ </pendingMessageLimitStrategy>
</policyEntry>
<policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb">
<!-- Use VM cursor for better latency