Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 84218 invoked from network); 18 May 2009 13:32:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 May 2009 13:32:14 -0000 Received: (qmail 97273 invoked by uid 500); 18 May 2009 13:32:14 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 97243 invoked by uid 500); 18 May 2009 13:32:14 -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 97233 invoked by uid 99); 18 May 2009 13:32:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 13:32:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 72.14.220.155 as permitted sender) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 13:32:02 +0000 Received: by fg-out-1718.google.com with SMTP id 22so537478fge.21 for ; Mon, 18 May 2009 06:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=556wmZHhInnSNo+E1Iug0oOTcG4XqcWPTuMFmN5nHOg=; b=OlkBSJWL8Cz8n7JSHeO5oIvkNVphJe/4F20FbBJR86t24E9VZT4VwuuUQb3XPqqPxS 3Jyjpfx9fxiNVP84ClbttD+66oPTdLrq7C9rwnPNvhO93X5yOF+5DA+fOJZ767SsnG0x IdOr9iafpvfsRygqpaTCM7seMj/1tKrjgQ68w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=MJrCnn9RNQaVo6ngHslwWJfnWDk4qhtKRJYhBJNEqlVAN2T1rOAg8Hqu1Ljl7YrBGy zw7D6tOlWyYYMZE/2znlJ/S3F4YryNDL7LsLzo5zRVI5NBc3vdIogSBOScmotTwy0pW5 kSQaGOntcqnzZjMIJTl27O4RHe3hi8qZh0HC8= MIME-Version: 1.0 Received: by 10.86.49.13 with SMTP id w13mr6682915fgw.38.1242653501868; Mon, 18 May 2009 06:31:41 -0700 (PDT) In-Reply-To: <23572764.post@talk.nabble.com> References: <23572764.post@talk.nabble.com> Date: Mon, 18 May 2009 14:31:41 +0100 Message-ID: <3a73c17c0905180631i3cf730b8kacc1abaaa40d43eb@mail.gmail.com> Subject: Re: Possible memory leak in statistics gathering From: Gary Tully To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=000e0cd245ea8ecc26046a2fd06b X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd245ea8ecc26046a2fd06b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit this leak sounds a lot like https://issues.apache.org/activemq/browse/AMQ-2178 that is fixed on trunk and available in the current 5.3-snapshot. 2009/5/16 emersonf > > Hi, > > I've been running some load tests on a Spring Integration system backed by > ActiveMQ 5.2.0. I noticed that one of my application components was leaking > memory, and heap analysis showed this memory to be > org.apache.activemq.management statistics related. In particular, instances > of CountStatisticImpl and TimeStatisticImpl are being created at an > alarming > rate, and they're not being garbage collected. > > The pertinent behavior of Spring Integration > (DefaultMessageListenerContainer, for those who care) is that it creates a > fixed number of sessions on a single connection, and then a fixed number of > message consumers on those sessions. These sessions and consumers are kept > for the lifetime of the application. A message producer is created for each > outgoing message. > > I have already disabled statistics on the broker > (enableStatistics="false"), > but the problem persists. Is there any way to disable statistics on the > broker's clients? > > Thanks, > Emerson > -- > View this message in context: > http://www.nabble.com/Possible-memory-leak-in-statistics-gathering-tp23572764p23572764.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source SOA http://FUSESource.com --000e0cd245ea8ecc26046a2fd06b--