Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 26568 invoked from network); 12 Aug 2004 09:41:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Aug 2004 09:41:31 -0000 Received: (qmail 29269 invoked by uid 500); 12 Aug 2004 09:41:03 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 29222 invoked by uid 500); 12 Aug 2004 09:41:03 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29209 invoked by uid 99); 12 Aug 2004 09:41:03 -0000 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [80.91.224.249] (HELO main.gmane.org) (80.91.224.249) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 12 Aug 2004 02:41:01 -0700 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BvC4x-0005wK-00 for ; Thu, 12 Aug 2004 11:40:59 +0200 Received: from borsh01.free-online.co.uk ([212.56.93.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Aug 2004 11:40:59 +0200 Received: from teknokrat by borsh01.free-online.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Aug 2004 11:40:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org From: teknokrat Subject: Re: Memory Usage - Tomcat 5.0.25 Date: Wed, 11 Aug 2004 14:37:33 +0100 Lines: 86 Message-ID: References: <30EB828C264FD6119C5300B0D06876DB0746EE4C@415mail.calleci.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: borsh01.free-online.co.uk User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 MultiZilla/1.6.4.0b X-Accept-Language: en-us, en In-Reply-To: <30EB828C264FD6119C5300B0D06876DB0746EE4C@415mail.calleci.com> Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Nandish Rudra wrote: > Hello Everyone, > > I am writing about this error from yesterday. I used JProfiler to monitor my > memory usage. And am now sure that each and every static object is trashed > when the application is undeployed and the profiler shows that memory is > free and all instance of the objects are GC'd. This works on a Windows 2000 > setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but > fails miserably on GNU Linux 2.4.20-8 setup. this happens with both tomcat > 5.0.25 and 5.0.27 > > Any ideas why something like this could be happening. > > Nandish Rudra > ECI Conference call Service LLC. > > -----Original Message----- > From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com] > Sent: Monday, August 09, 2004 1:35 PM > To: Tomcat Users List > Subject: RE: Memory Usage - Tomcat 5.0.25 > > > > Hi, > I have a couple of ideas. One is that your webapp maintain static or > shared references to objects that prevent them from being garbage > collected, and therefore memory from returning to the heap. Another is > that a webapp undeploy is not guaranteed to reclaim all memory used by > the webapp anyways so to count on this behavior is not smart. It is > expected that every time you reload your webapp the overall memory usage > of the server will go up a bit, as not all objects are gone (for > example, if you have a static reference than the old classloader and > anything that references it strongly will remain in memory). > > Yoav Shapira > Millennium Research Informatics > > > >>-----Original Message----- >>From: Nandish Rudra [mailto:nrudra@calleci.com] >>Sent: Monday, August 09, 2004 1:17 PM >>To: Tomcat Users List (E-mail) >>Subject: Memory Usage - Tomcat 5.0.25 >> >>Hello, >> >>I am having some memory issues while deploing/undeploying web > > applications > >>to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 > > and > >>Ant >>1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application > > and > >>Tomcat's catalina-ant.jar to deploy it automatically. >> >>Here is my problem. When I undeploy/remove an application, Tomcat does > > not > >>reclaim the memory being used by the web application and when the >>application is re-deployed/re-installed a significant increase in > > memory is > >>seen. This increase is obviously the memory usage by the new instance > > of > >>the >>web application. >> >>Does anyone have any idea as to why this is happening? >> Try looking at jvmstat (http://developers.sun.com/dev/coolstuff/jvmstat/) My own tests with show that its the permanent space of objects that gets filled up and not reclaimed after each reload. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org