activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r884984 - in /websites/production/activemq/content: cache/main.pageCache what-is-the-prefetch-limit-for.html
Date Thu, 31 Oct 2013 19:21:55 GMT
Author: buildbot
Date: Thu Oct 31 19:21:55 2013
New Revision: 884984

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/cache/main.pageCache
    websites/production/activemq/content/what-is-the-prefetch-limit-for.html

Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/activemq/content/what-is-the-prefetch-limit-for.html
==============================================================================
--- websites/production/activemq/content/what-is-the-prefetch-limit-for.html (original)
+++ websites/production/activemq/content/what-is-the-prefetch-limit-for.html Thu Oct 31 19:21:55
2013
@@ -32,15 +32,6 @@
     </style>
     <![endif]-->
 
-          <link href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' /> 
-      <link href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' /> 
-      <script src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script>

-              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script> 
-         
-      <script type="text/javascript"> 
-        SyntaxHighlighter.defaults['toolbar'] = false; 
-        SyntaxHighlighter.all(); 
-      </script> 
     
     <title>
     Apache ActiveMQ &#8482; -- What is the prefetch limit for
@@ -127,7 +118,7 @@ consumer = session.createConsumer(queue)
 <p>Consuming messages from a pool of consumers an be problematic due to prefetch. Unconsumed
prefetched messages are only released when a consumer is closed, but with a pooled consumer
the close is deferred (for reuse) till the consumer pool closes. This leaves prefetched messages
unconsumed till the consumer is reused. This feature can be desirable from a performance perspective
but it can lead to out-of-sequence messages when there is more than one consumer in the pool.<br
clear="none">
 For this reason, the <a shape="rect" class="external-link" href="http://activemq.apache.org/maven/5.5.0/activemq-pool/apidocs/index.html">org.apache.activemq.pool.PooledConnectionFactory</a>
does <b>not</b> pool consumers. <br clear="none">
 The problem is visible with the Spring DMLC when the cache level is set to CACHE_CONSUMER
and there are multiple concurrent consumers.<br clear="none">
-One solution to this problem is to use a prefetch of 0 for a pooled consumer, in this way,
it will poll for messages on each call to <tt>receive(timeout)</tt>.</p>
+One solution to this problem is to use a prefetch of 0 for a pooled consumer, in this way,
it will poll for messages on each call to <tt>receive(timeout)</tt>.  Another
option is to enable the <a shape="rect" class="external-link" href="http://activemq.apache.org/maven/5.9.0/apidocs/org/apache/activemq/broker/region/policy/AbortSlowAckConsumerStrategy.html">AbortSlowAckConsumerStrategy</a>
on the broker to disconnect consumers that have not acknowledged a Message after some configurable
time period. </p>
 
 <h3><a shape="rect" name="Whatistheprefetchlimitfor-RamversusPerformancetradeoff"></a>Ram
versus Performance tradeoff</h3>
 



Mime
View raw message