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 20DDC104CE for ; Thu, 5 Sep 2013 00:04:52 +0000 (UTC) Received: (qmail 78714 invoked by uid 500); 5 Sep 2013 00:04:51 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 78682 invoked by uid 500); 5 Sep 2013 00:04:51 -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 78673 invoked by uid 99); 5 Sep 2013 00:04:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 00:04:51 +0000 Date: Thu, 5 Sep 2013 00:04:51 +0000 (UTC) From: "Jason Shepherd (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMQ-4621) Provide a polling SlowConsumerPolicy that uses LastAck time on a sub 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-4621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Shepherd updated AMQ-4621: -------------------------------- Attachment: kahaPendingMEssage-20130905.zip XML Configuration of new abortSlowAckConsumerStrategy fails with: testSendAndListenToOnNetworkOfBrokers(jmsTest.TestWithSystemUsage): Line 61 in XML document from class path resource [spring2.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 61; columnNumber: 35; cvc-complex-type.2.4.a: Invalid content was found starting with element 'abortSlowAckConsumerStrategy'. One of '{"http://activemq.apache.org/schema/core":abortSlowConsumerStrategy, WC[##other:"http://activemq.apache.org/schema/core"]}' is expected. > Provide a polling SlowConsumerPolicy that uses LastAck time on a sub > -------------------------------------------------------------------- > > Key: AMQ-4621 > URL: https://issues.apache.org/jira/browse/AMQ-4621 > Project: ActiveMQ > Issue Type: Improvement > Affects Versions: 5.8.0 > Reporter: Gary Tully > Assignee: Timothy Bish > Labels: abort, connection, consumer, policy, slowConsumers > Fix For: 5.9.0 > > Attachments: AMQ4621Patch.txt, kahaPendingMEssage-20130905.zip > > > The existing AbortSlowConsumer policy is event driven. It depends on a consumer slow event that is triggered when the prefetch is reached and there are subsequent dispatches. > With prefetch=0|1 there still needs to be throughput to determine that the consumer is slow so one message can be pending if there are no new messages to sent to the destination. > Providing an alternative implementation that will periodically poll consumers for their last ack time will be more deterministic. The slow advisory may never fire, but the consumer will get aborted if it does not ack in a timely manner. > if lastAckTime exceeds the max and there are dispatched messages it can be a candidate for removal. > Optionally lastAckTime exceeding and no dispatched messages can be a way to remove idle consumers. Not sure if that is necessary. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira