activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r819520 - in /activemq/trunk/assembly/src: release/conf/activemq.xml sample-conf/activemq-throughput.xml
Date Mon, 28 Sep 2009 13:04:55 GMT
Author: dejanb
Date: Mon Sep 28 13:04:54 2009
New Revision: 819520

URL: http://svn.apache.org/viewvc?rev=819520&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2400 - default config modifications

Modified:
    activemq/trunk/assembly/src/release/conf/activemq.xml
    activemq/trunk/assembly/src/sample-conf/activemq-throughput.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=819520&r1=819519&r2=819520&view=diff
==============================================================================
--- activemq/trunk/assembly/src/release/conf/activemq.xml (original)
+++ activemq/trunk/assembly/src/release/conf/activemq.xml Mon Sep 28 13:04:54 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/trunk/assembly/src/sample-conf/activemq-throughput.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/sample-conf/activemq-throughput.xml?rev=819520&r1=819519&r2=819520&view=diff
==============================================================================
--- activemq/trunk/assembly/src/sample-conf/activemq-throughput.xml (original)
+++ activemq/trunk/assembly/src/sample-conf/activemq-throughput.xml Mon Sep 28 13:04:54 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



Mime
View raw message