git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@819520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2009-09-28 13:04:54 +00:00
parent 74148299dc
commit db5ca6e5f8
2 changed files with 36 additions and 23 deletions

View File

@ -57,23 +57,35 @@
<!-- <!--
It's advisable to turn on producer flow control in the production system 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 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 The systemUsage controls the maximum amount of space the broker will
use before slowing down producers. For more information, see: use before slowing down producers. For more information, see:
http://activemq.apache.org/producer-flow-control.html http://activemq.apache.org/producer-flow-control.html
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry queue=">" producerFlowControl="true" />
<policyEntry topic=">" producerFlowControl="true" />
</policyEntries>
</policyMap>
</destinationPolicy>
<systemUsage> <systemUsage>
<systemUsage> <systemUsage>
<memoryUsage> <memoryUsage>
@ -87,8 +99,8 @@
</tempUsage> </tempUsage>
</systemUsage> </systemUsage>
</systemUsage> </systemUsage>
--> -->
<!-- <!--
The transport connectors expose ActiveMQ over a given protocol to The transport connectors expose ActiveMQ over a given protocol to
clients and other brokers. For more information, see: clients and other brokers. For more information, see:

View File

@ -40,15 +40,16 @@
--> -->
<destinationPolicy> <destinationPolicy>
<policyMap> <policyMap>
<policyEntries> <policyEntries>
<policyEntry queue=">"> <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
<pendingQueuePolicy> <pendingSubscriberPolicy>
<vmQueueCursor /> <vmCursor />
</pendingQueuePolicy> </pendingSubscriberPolicy>
</policyEntry> </policyEntry>
</policyEntries> <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb" />
</policyEntries>
</policyMap> </policyMap>
</destinationPolicy> </destinationPolicy>
<!-- <!--
Use KahaDB for persistence Use KahaDB for persistence