Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F1B6102DE for ; Thu, 31 Oct 2013 16:34:07 +0000 (UTC) Received: (qmail 27616 invoked by uid 500); 31 Oct 2013 16:27:46 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 27469 invoked by uid 500); 31 Oct 2013 16:27:30 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 27384 invoked by uid 99); 31 Oct 2013 16:27:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Oct 2013 16:27:20 +0000 Date: Thu, 31 Oct 2013 16:27:19 +0000 (UTC) From: "Benjamin Truitt (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-4827) Set jms.queuePrefetch=1 Causes Messages To Be Stuck in Queue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810408#comment-13810408 ] Benjamin Truitt commented on AMQ-4827: -------------------------------------- Awesome. Thanks for the fast response! In that case, we may want to convert this bug report to a request to improve the documentation at http://activemq.apache.org/what-is-the-prefetch-limit-for.html to include the information at http://java.dzone.com/articles/coming-activemq-59-new-way. Thanks again. -Ben > Set jms.queuePrefetch=1 Causes Messages To Be Stuck in Queue > ------------------------------------------------------------ > > Key: AMQ-4827 > URL: https://issues.apache.org/jira/browse/AMQ-4827 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.7.0, 5.8.0 > Reporter: Yung Lai > > Configuration: > connectionUri=tcp://localhost:61616?jms.prefetchPolicy.queuePrefetch=1&keepAlive=true > activemq.conf is default with no changes > Scenario: > Sent 7 different messages to the same queue. With prefetch=1 about 1 or 2 messages would get stuck in the queue everytime. After a restart of activemq the messages that were stuck in queue would be processed. > With cachingConsumers=false the messages would not get stuck. > We need cachingConsumers for better performance so setting it to false is not an option for us. > Here is a thread that is very similar to the issue. > http://activemq.2283324.n4.nabble.com/Messages-stuck-in-queue-td3244342.html > Thank you for your time and consideration. -- This message was sent by Atlassian JIRA (v6.1#6144)