Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 37506 invoked from network); 22 Jul 2006 06:54:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jul 2006 06:54:00 -0000 Received: (qmail 32612 invoked by uid 500); 22 Jul 2006 06:54:00 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 32433 invoked by uid 500); 22 Jul 2006 06:54:00 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 32424 invoked by uid 99); 22 Jul 2006 06:54:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 23:54:00 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of chandrasaurabh@gmail.com designates 66.249.82.202 as permitted sender) Received: from [66.249.82.202] (HELO wx-out-0102.google.com) (66.249.82.202) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 23:53:59 -0700 Received: by wx-out-0102.google.com with SMTP id s8so512490wxc for ; Fri, 21 Jul 2006 23:53:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=j7kyUmmOnE4GGksZLaKLf53JaOqSMdJttxx3KmLOSJD0kr42KV489SWBKtGvGpoE/zqpV+sr1FDQY8gXMXHLn0gPBmInzcy0WzZRLD9HghPe4I7FHbLKLmn5s6bJ8YC0CaA01jKEA7RjwlB2q/RQK4m6M9shWmmFe39qbkRAWIA= Received: by 10.70.94.4 with SMTP id r4mr2249556wxb; Fri, 21 Jul 2006 23:53:38 -0700 (PDT) Received: by 10.70.45.6 with HTTP; Fri, 21 Jul 2006 23:53:38 -0700 (PDT) Message-ID: <69e8df2c0607212353h5ba3abaetf129fc8c73393acd@mail.gmail.com> Date: Sat, 22 Jul 2006 12:23:38 +0530 From: "Saurabh Chandra" To: activemq-users@geronimo.apache.org Subject: Re: Memory usage increasing In-Reply-To: <69e8df2c0607212330mff740feg28784d91f0b08a83@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <69e8df2c0607212330mff740feg28784d91f0b08a83@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sorry, forgot that attachments won't work on the mailing list. I have uploaded the screenshots here: http://picasaweb.google.com/chandrasaurabh/MemScreenshots regards Saurabh On 7/22/06, Saurabh Chandra wrote: > Hello, > > I was facing some memory issues with our activeMQ app. The memory > usage increased and byte [] instances are not getting released. I did > some investigation using jrockit memleak and am attaching screenshots > of memory increase (hourly), instance counts and ref graph. The ref > graph points to ActiveMQTextMessage and then to a linked list which is > self referring. I don't have any linked lists in the code that has > been written but there is a static string - could that be a culprit? > > As can be seen in the graph the memory did become stable finally. > Could it be "normal" behavior that we should not be alarmed about? > > The code being invoked is pretty simple right now - > > //Consumer code > public void onMessage(Message msg) { > logger.debug("######Recieved:"+msg.toString()); > try { > FeedValue.setFeed(((TextMessage)msg).getText()); > logger.debug("Recieved and FeedValue set "); > } catch (JMSException e) { > // e.printStackTrace(); > logger.error("There was a JMSException: ",e.fillInStackTrace()); > } > } > > //FeedValue Class > public class FeedValue { > > private static String feed = ""; > > public static String getFeed() { > return feed; > } > > public static void setFeed(String feed) { > FeedValue.feed = feed; > } > > } > > Using activeMQ 4.0 and JDK 1.5. ActiveMQ is configured as an embedded > broker on Tomcat 5.5 using spring to configure it. > > regards > Saurabh > > >