Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 27705 invoked from network); 3 Jan 2010 10:13:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jan 2010 10:13:51 -0000 Received: (qmail 54103 invoked by uid 500); 3 Jan 2010 10:13:51 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 54039 invoked by uid 500); 3 Jan 2010 10:13:50 -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 54028 invoked by uid 99); 3 Jan 2010 10:13:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jan 2010 10:13:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rajdavies@gmail.com designates 209.85.211.202 as permitted sender) Received: from [209.85.211.202] (HELO mail-yw0-f202.google.com) (209.85.211.202) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jan 2010 10:13:40 +0000 Received: by ywh40 with SMTP id 40so15472362ywh.26 for ; Sun, 03 Jan 2010 02:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=3iZ49+hL3/lahLWKOXhthTzYFUNBOZOc8uxjSPeYSw0=; b=ha4wuBHpDPR+m+9/iEjlNvEmPnViifmLa5GAb4KAYcRUKa6izAR/m6Y+EB67lrzH8N Zu5vEHQ9TWT1r7sLFDiY25frDDbu4QW7TkqG302reRI4Sxds76J+Pkl2bFQn8UWPcf4d oxiCf0U4q/TAZzBGvyRUTVhvQbXP2uOrvzrAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=OVNOFp5+FFjdmZpoNnudFsNW0jRp2PywLYI7EBT9LaJsufCtNuEIeowMexY6DRe7uq bcXVlWAwetx/ccarevc3/P2wiNb+7WNyN1q2XL1it5fuGc3eFmD5qELI6pvEtVXPolJA BKvlPbA7yetA4A5m2eXmY90yix0zM9VYKJtUY= Received: by 10.101.134.17 with SMTP id l17mr6388625ann.135.1262513598171; Sun, 03 Jan 2010 02:13:18 -0800 (PST) Received: from ?192.168.1.164? (host86-134-139-190.range86-134.btcentralplus.com [86.134.139.190]) by mx.google.com with ESMTPS id 22sm16622837iwn.12.2010.01.03.02.13.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Jan 2010 02:13:17 -0800 (PST) Message-Id: From: Rob Davies To: users@activemq.apache.org In-Reply-To: <7582F7F3-2531-46DC-948B-0699FCEB72C7@observant.com.au> 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: Massive accumulation of ConcurrentHashMap in heap Date: Sun, 3 Jan 2010 10:13:13 +0000 References: <7582F7F3-2531-46DC-948B-0699FCEB72C7@observant.com.au> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org On 3 Jan 2010, at 02:07, J. Matthew Pryor wrote: > Hi, > > I am trying to track down the reason for a massive accumulation of > ConcurrentHashMap in the heap of our long running Java process. > > We are running Java 1.6 so I am pretty sure the known issue relating > to the 1.5 JVM doesn't apply here. > > The URL below is a link to a screen shot of the heap analysis, > showing the accumulated memory. It seems to be root in a series or > region brokers? > > http://img160.yfrog.com/img160/1049/heap.png > > I can also see that some JMX classes are in the root, could the > reason for the accumulation be related to having JMX enabled? > > As far as we can tell, the queues are being serviced normally, and > this application generally runs for long periods of time without any > noticeable memory leak. > > I'd be greatly appreciative of any ideas for strategies to get more > information about the source of the memory accumulation. > > We're using Java 1.6 7 Active MQ 5.3 > > Thanks, > Matthew > Yuk - I thought I had purged all the use of ConcurrentHashMap - it looks like you have a lot of active connections ?? Rob Davies http://twitter.com/rajdavies I work here: http://fusesource.com My Blog: http://rajdavies.blogspot.com/ I'm writing this: http://www.manning.com/snyder/