Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 18324 invoked from network); 15 Jun 2004 07:42:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Jun 2004 07:42:41 -0000 Received: (qmail 40721 invoked by uid 500); 15 Jun 2004 07:42:37 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 40569 invoked by uid 500); 15 Jun 2004 07:42:36 -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 40553 invoked by uid 99); 15 Jun 2004 07:42:36 -0000 Received: from [212.33.142.2] (HELO voyager.coretrek.no) (212.33.142.2) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 15 Jun 2004 00:42:36 -0700 Received: from localhost (localhost [127.0.0.1]) by voyager.coretrek.no (Postfix) with ESMTP id 34271A89A6 for ; Tue, 15 Jun 2004 09:41:53 +0200 (CEST) Received: from excalibur.intra.coretrek.com (wormhole.coretrek.no [212.33.142.10]) by voyager.coretrek.no (Postfix) with ESMTP id 7AC0CA89A4 for ; Tue, 15 Jun 2004 09:41:52 +0200 (CEST) Date: Tue, 15 Jun 2004 09:41:52 +0200 (CEST) From: =?iso-8859-1?Q?Endre_St=F8lsvik?= X-X-Sender: endre@excalibur.intra.coretrek.com To: Tomcat Users List Subject: RE: Memory Settings On Tomcat In-Reply-To: Message-ID: X-My-Opinion: War and bombs are bad. Peace and flowers are good. ;-D MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by AMaViS perl-11 (CoreTrek patch 1) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, 15 Jun 2004, Endre St�lsvik wrote: | On Mon, 14 Jun 2004, Woodchuck wrote: | | | Runtime.getRuntime().maxMemory() will get you the | | maximum amount of memory for your jvm. | | Yeah, check out maxMem, freeMem and totalMem.. Are those something along | the line of what you're looking for? You might also want to try .gc() (force Garbage Collection) - run freeMemory() right before and right after .gc(), print out the diff too. Interesting numbers, these - I can stay up all night watching them unfold over my screen.. growing, shrinking.. growing .. growing .. GROWING?? ah.. shrinking.. shrinking.. You get the point.. Endre. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org