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 B9A8FD781 for ; Mon, 10 Dec 2012 18:37:10 +0000 (UTC) Received: (qmail 71586 invoked by uid 500); 10 Dec 2012 18:37:10 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 71557 invoked by uid 500); 10 Dec 2012 18:37:10 -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 71549 invoked by uid 99); 10 Dec 2012 18:37:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 18:37:10 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 18:37:05 +0000 Received: by mail-ie0-f171.google.com with SMTP id 17so9564990iea.2 for ; Mon, 10 Dec 2012 10:36:45 -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; bh=PdUr8gvgL7GIXEgl+K56oZ2hcYasy7Y5H97HaTOTvBY=; b=mKSlQpzzgbpAzkd3tj+CD3Yijy4Zvq36eVey9t6nqnQumJADj210gw3lyP/eG7ujB0 hgiQxATX5cWSTZT+bds8okrSoNSHqWpAqLdcEB0VxbsWwXuDaIOyO5ro5+dsMl1G/E90 MzkhXsW6uaRVkHWuGj/W8YaKm18/G9hx89fGzH/dfZ9NaMjp7yTTmOVolbYqxBTmCg5X Fw6fQlwh56q6ii0DEnHDkclhauUJ5O+hsr/+wdvmZ4H/kYsx4V27rssL4iCegs2ahFI2 LI3+m+LZdPGZJ01o6dkQ4QymYQ8LgWFHhbEP1Y5xYa+b/neDrbz6rvIbQerzco7kSZSM pIXg== MIME-Version: 1.0 Received: by 10.42.27.74 with SMTP id i10mr11883728icc.47.1355164605090; Mon, 10 Dec 2012 10:36:45 -0800 (PST) Received: by 10.50.50.1 with HTTP; Mon, 10 Dec 2012 10:36:45 -0800 (PST) In-Reply-To: <1355150640969-4660437.post@n4.nabble.com> References: <1355150640969-4660437.post@n4.nabble.com> Date: Mon, 10 Dec 2012 11:36:45 -0700 Message-ID: Subject: Re: Broker Leak From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=20cf303f64eae60b3b04d083d8ac X-Virus-Checked: Checked by ClamAV on apache.org --20cf303f64eae60b3b04d083d8ac Content-Type: text/plain; charset=ISO-8859-1 That could be the case. When a temp dest goes away, it's subs do not automatically go away. This is something we've been discussing recently. Can you post the configs you used in your test, or better yet a unit test that shows this? On Mon, Dec 10, 2012 at 7:44 AM, Jerry Cwiklik wrote: > I am running AMQ broker v.5.6 on linux with 10G Xmx, 5G limit memoryUsage, > producerFlowControl=false, no persistence, vmCursor and AUTO_ACKNOWLEDGE. > There are a hundreds of producers and consumers, a few queues and a couple > of hundred of temp queues. While watching broker memory in jConsole I > notice > a steady raise in OldGen. Forcing GC doesnt change anything. The broker > eventually OOMs after a few days. The HeapAnalyzer shows 96% of heap in > VmPendingMessageCursor. There are many messages destined for temp queues in > this cursor. > > I created a simple test program where a Producer keeps sending messages to > a > Consumer which immediately sends a reply back to the Producer's temp queue. > I kill the Producer with -9, force GC on the broker and dump the heap. > Looking at the heap, I can see that the VMPendingCursor holds messages for > the temp queue which no longer exist! It looks to me that the broker never > cleans up messages destined for temp queues which no longer exist leading > to > a memory leak. Attached is a snapshot from the heapAnalyzer showing a > message in VMPendingMessageCursor. > > Is there a way to configure the broker to remove such messages? We > currently > dont expire messages (TTL=0). The broker knows when a temp queue is deleted > so it should try to clean up messages associated with it. > > > > Regards, Jerry C > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Broker-Leak-tp4660437.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --20cf303f64eae60b3b04d083d8ac--