You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2011/02/22 20:15:09 UTC

svn commit: r1073456 - /uima/uima-as/trunk/uima-as/src/main/config/activemq-nojournal.xml

Author: cwiklik
Date: Tue Feb 22 19:15:09 2011
New Revision: 1073456

URL: http://svn.apache.org/viewvc?rev=1073456&view=rev
Log:
UIMA-2068 Added optimizedDispatch="true"

Modified:
    uima/uima-as/trunk/uima-as/src/main/config/activemq-nojournal.xml

Modified: uima/uima-as/trunk/uima-as/src/main/config/activemq-nojournal.xml
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uima-as/src/main/config/activemq-nojournal.xml?rev=1073456&r1=1073455&r2=1073456&view=diff
==============================================================================
--- uima/uima-as/trunk/uima-as/src/main/config/activemq-nojournal.xml (original)
+++ uima/uima-as/trunk/uima-as/src/main/config/activemq-nojournal.xml Tue Feb 22 19:15:09 2011
@@ -40,25 +40,27 @@
             For more information, see:
             http://activemq.apache.org/producer-flow-control.html
         -->
-              
+        <!-- 
+          Broker optimizations for better performance:
+          1) optimizedDispatch="true" - use a single thread per JMS Session. This setting instructs
+             AMQ to use a transport thread to deliver messages to JMS Listener. By default two threads
+             are used: Transport thread and a Session thread. This optimization yields the best 
+             performance gain.
+             
+          2) producerFlowControl="false" - instructs the AMQ to never slow down or block a producer      
+        -->      
         <destinationPolicy>
             <policyMap>
               <policyEntries>
-                <policyEntry topic=">" producerFlowControl="false" memoryLimit="1mb">
+                <policyEntry topic=">" producerFlowControl="false" optimizedDispatch="true" memoryLimit="1mb">
                   <pendingSubscriberPolicy>
                     <vmCursor />
                   </pendingSubscriberPolicy>
                 </policyEntry>
-                <policyEntry queue=">" producerFlowControl="false" memoryLimit="1mb">
-                  <!-- Use VM cursor for better latency
-                       For more information, see:
-                       
-                       http://activemq.apache.org/message-cursors.html
-                       
+                <policyEntry queue=">" producerFlowControl="false" optimizedDispatch="true" memoryLimit="1mb">
                   <pendingQueuePolicy>
                     <vmQueueCursor/>
                   </pendingQueuePolicy>
-                  -->
                 </policyEntry>
               </policyEntries>
             </policyMap>