Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 583FB10CC7 for ; Fri, 22 Nov 2013 15:23:17 +0000 (UTC) Received: (qmail 81498 invoked by uid 500); 22 Nov 2013 15:23:16 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 81475 invoked by uid 500); 22 Nov 2013 15:23:16 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 81467 invoked by uid 99); 22 Nov 2013 15:23:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 15:23:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 15:23:11 +0000 Received: by mail-lb0-f180.google.com with SMTP id w6so1037978lbh.39 for ; Fri, 22 Nov 2013 07:22:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=mISG/2B1q8CHkk7nSSdkk0dxRaYBE4pxiIXb7CjPGmU=; b=kTR9FsQwwVO4Z+WFyy1D2bZPb6JvCTYrqyQbpTs5r4p8Sbl7qgkL7XbJzSfP2YCc0G fQtVfc0FDS9c6410yuq30SxBMUuqN0AJtmk4PPpx8kuBq803E/pkjuQMFokxf+qZkMQ8 LPL8TZrdmnjP9VGmsE/8DkNOhyXwboXukQugKr3vgyCGrXM/yeE8Bxr8D3Xc7PqN5FqP Qa/SHUXXKZvBtomy06ILcLWe5ZhXekpkM4WeSoo9cedSZcayLr3H5fkLS7/XKMbcrfU4 LjaBr+2ZWwJrzCL6odlvYanEmiqe3T+kyHrZrz1Zf4IWLtfIbkL5uZuK3uyFBv0Uin1u kgIg== MIME-Version: 1.0 X-Received: by 10.112.53.198 with SMTP id d6mr1288025lbp.47.1385133769583; Fri, 22 Nov 2013 07:22:49 -0800 (PST) Received: by 10.114.243.139 with HTTP; Fri, 22 Nov 2013 07:22:49 -0800 (PST) In-Reply-To: <443BCE38E921434394B45FF0813FA578053E9763@MSGEXSV21106.ent.wfb.bank.corp> References: <443BCE38E921434394B45FF0813FA578053E8A34@MSGEXSV21106.ent.wfb.bank.corp> <443BCE38E921434394B45FF0813FA578053E9763@MSGEXSV21106.ent.wfb.bank.corp> Date: Fri, 22 Nov 2013 08:22:49 -0700 Message-ID: Subject: Re: Producer Flow Block - Consumer Deadlock after max memory limits exceeded From: Christian Posta To: "users@activemq.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Right. It means that particular file that holds the message cannot be deleted/archived. On Fri, Nov 22, 2013 at 6:48 AM, wrote: > If there is a 'useful' artificat in the journal which is 'tied' to a mess= age on the DLQ, that means the journal can't be cleared, right? The only w= ay to clear the journal is to delete the message from the DLQ first, correc= t? > > Regards, > > Barry Barnett > WMQ Enterprise Services & Solutions > Wells Fargo > Cell: 704-564-5501 > > -----Original Message----- > From: Christian Posta [mailto:christian.posta@gmail.com] > Sent: Thursday, November 21, 2013 6:13 PM > To: users@activemq.apache.org > Subject: Re: Producer Flow Block - Consumer Deadlock after max memory lim= its exceeded > > Inline... > > On Thu, Nov 21, 2013 at 10:51 AM, wrote: >> Version: Active MQ v5.8 >> Embedded Broker, Producer, Consumer all within same JVM >> >> If max memory limits are set to 320MB, which equates to 10 journal files= (32MB per file), the files cannot be cleared even if there is 1 message on= the DLQ. > > So you might need to post your config (or show the code for your config i= f embedded). "Memory Limits" set to 320MB isn't the same thing as "Store Li= mits" set to 320MB with 32MB journal files. Individual files will be cleare= d out if there are no useful artifacts in them (messages, durable subscript= ion info, producer audit data structures, etc...). The default cleanup peri= od is 30s: > > eg: > > > > > >>This 1 message blocks the freeing up of the journal file where it resides= . In order to resolve this, the JVM is >recycled. I'm sure there is a bet= ter way of resolving this issue. Any advice? > > Are producer/consumer using same connection? What ack mode is your consum= er using? > > Since this is embedded (broker,producer,consumer) it should be easy enoug= h to extract out the salient points and put together a unit test. > If you provide something concrete like that, I can take a look and tell y= ou exactly what's happening. > > >> >> Regards, >> >> Barry Barnett >> WMQ Enterprise Services & Solutions >> Wells Fargo >> Cell: 704-564-5501 >> >> >> > > > > -- > Christian Posta > http://www.christianposta.com/blog > twitter: @christianposta --=20 Christian Posta http://www.christianposta.com/blog twitter: @christianposta