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 2009/09/28 15:06:59 UTC
svn commit: r819521 - in /activemq/branches/activemq-5.3/assembly/src:
release/conf/activemq.xml sample-conf/activemq-throughput.xml
Author: dejanb
Date: Mon Sep 28 13:06:59 2009
New Revision: 819521
URL: http://svn.apache.org/viewvc?rev=819521&view=rev
Log:
merging http://svn.apache.org/viewvc?rev=819520&view=rev
Modified:
activemq/branches/activemq-5.3/assembly/src/release/conf/activemq.xml
activemq/branches/activemq-5.3/assembly/src/sample-conf/activemq-throughput.xml
Modified: activemq/branches/activemq-5.3/assembly/src/release/conf/activemq.xml
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/assembly/src/release/conf/activemq.xml?rev=819521&r1=819520&r2=819521&view=diff
==============================================================================
--- activemq/branches/activemq-5.3/assembly/src/release/conf/activemq.xml (original)
+++ activemq/branches/activemq-5.3/assembly/src/release/conf/activemq.xml Mon Sep 28 13:06:59 2009
@@ -57,23 +57,35 @@
<!--
- It's advisable to turn on producer flow control in the production system
-
- The systemUsage controls the maximum amount of space the broker will
- use before slowing down producers. For more information, see:
+ For better performances use VM cursor and small memory limit.
+ For more information, see:
+ http://activemq.apache.org/message-cursors.html
+
+ Also, if your producer is "hanging", it's probably due to producer flow control.
+ For more information, see:
http://activemq.apache.org/producer-flow-control.html
+ -->
<destinationPolicy>
<policyMap>
- <policyEntries>
- <policyEntry queue=">" producerFlowControl="true" />
- <policyEntry topic=">" producerFlowControl="true" />
- </policyEntries>
+ <policyEntries>
+ <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
+ <pendingSubscriberPolicy>
+ <vmCursor />
+ </pendingSubscriberPolicy>
+ </policyEntry>
+ <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb" />
+ </policyEntries>
</policyMap>
</destinationPolicy>
-
+ <!--
+ The systemUsage controls the maximum amount of space the broker will
+ use before slowing down producers. For more information, see:
+
+ http://activemq.apache.org/producer-flow-control.html
+
<systemUsage>
<systemUsage>
<memoryUsage>
@@ -87,8 +99,8 @@
</tempUsage>
</systemUsage>
</systemUsage>
- -->
-
+ -->
+
<!--
The transport connectors expose ActiveMQ over a given protocol to
clients and other brokers. For more information, see:
Modified: activemq/branches/activemq-5.3/assembly/src/sample-conf/activemq-throughput.xml
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-5.3/assembly/src/sample-conf/activemq-throughput.xml?rev=819521&r1=819520&r2=819521&view=diff
==============================================================================
--- activemq/branches/activemq-5.3/assembly/src/sample-conf/activemq-throughput.xml (original)
+++ activemq/branches/activemq-5.3/assembly/src/sample-conf/activemq-throughput.xml Mon Sep 28 13:06:59 2009
@@ -40,15 +40,16 @@
-->
<destinationPolicy>
<policyMap>
- <policyEntries>
- <policyEntry queue=">">
- <pendingQueuePolicy>
- <vmQueueCursor />
- </pendingQueuePolicy>
- </policyEntry>
- </policyEntries>
+ <policyEntries>
+ <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
+ <pendingSubscriberPolicy>
+ <vmCursor />
+ </pendingSubscriberPolicy>
+ </policyEntry>
+ <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb" />
+ </policyEntries>
</policyMap>
- </destinationPolicy>
+ </destinationPolicy>
<!--
Use KahaDB for persistence