Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 67032 invoked from network); 18 Jan 2011 15:32:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2011 15:32:30 -0000 Received: (qmail 43271 invoked by uid 500); 18 Jan 2011 15:32:30 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 42875 invoked by uid 500); 18 Jan 2011 15:32:29 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 42859 invoked by uid 99); 18 Jan 2011 15:32:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 15:32:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [81.92.222.121] (HELO etux1.eurotux.com) (81.92.222.121) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 15:32:20 +0000 Received: (qmail 6607 invoked from network); 18 Jan 2011 15:31:57 -0000 Received: by simscan 1.3.1 ppid: 6587, pid: 6604, t: 0.0514s scanners: attach: 1.3.1 clamav: 0.90.3/m:43/d:3333 Received: from static-b3-114-6.telepac.pt (HELO [192.168.1.200]) (bmatos@paradigmaxis.pt@[213.13.114.6]) (envelope-sender ) by etux1.eurotux.com (etmailserver) with SMTP for ; 18 Jan 2011 15:31:57 -0000 Message-Id: <754D8FAB-465C-49C7-9576-8566EF305D4F@paradigmaxis.pt> From: Bruno Matos To: users@qpid.apache.org In-Reply-To: <4D2DE5F5.6070309@redhat.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Journal with LVQ Date: Tue, 18 Jan 2011 15:31:54 +0000 References: <1294763431.2999.12.camel@helios.office.paradigmaxis.pt> <4D2DE5F5.6070309@redhat.com> X-Mailer: Apple Mail (2.936) On 2011/01/12, at 17:33, Gordon Sim wrote: > On 01/11/2011 04:30 PM, Bruno Matos wrote: >> I'm publishing messages to a durable LVQ, when I run the publisher >> for >> the first time the journal stays almost full, then I send the exact >> same >> messages, expecting the old ones to be replaced, but after some >> time the >> connection is closed with "Enqueue capacity threshold exceeded on >> queue". With qpid-tool I can see that msgDepth and byteDepth are >> exactly >> the same before and after the second run. Is this the expected >> behavior? > > Depends on what you mean by 'expected' :-) > > It is certainly the case that the linux journal will reach capacity > with different queue depths, depending on exact sequences of > changes. i.e. the capacity is not simply a function of the final > state, but also of the path to get there. In the second case there > would be additional dequeue records and the file boundaries might > not align the same way etc, so the journal space can be used up for > fewer enqueued messages. Thank you Gordon. I think I can say that's the expected to me... :) Although I need to know what journal size is effectively in use, can be a percentage, is that possible? I have a stored queue for browsing, like a dictionary, that is updated every night, and I want to reset it only if it reaches to a given percentage of journal size. Tia. -- Bruno Matos bruno.matos@paradigmaxis.pt --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org