mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2400 - default config modifications
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@819520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
74148299dc
commit
db5ca6e5f8
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue