Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 20750 invoked from network); 15 Mar 2004 18:01:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Mar 2004 18:01:27 -0000 Received: (qmail 22656 invoked by uid 500); 15 Mar 2004 18:00:56 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 22634 invoked by uid 500); 15 Mar 2004 18:00:56 -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 22612 invoked from network); 15 Mar 2004 18:00:55 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 15 Mar 2004 18:00:55 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B2wOY-00017P-00 for ; Mon, 15 Mar 2004 19:00:58 +0100 Received: from cpe00095b487581-cm023459902501.cpe.net.cable.rogers.com ([24.42.163.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Mar 2004 19:00:58 +0100 Received: from spambort by cpe00095b487581-cm023459902501.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Mar 2004 19:00:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org From: "bort" Subject: Memory Usage Date: Mon, 15 Mar 2004 12:56:53 -0500 Lines: 31 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpe00095b487581-cm023459902501.cpe.net.cable.rogers.com X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all We've setup Tomcat to use a max of 256Mb. I've been tracking memory usage using: Runtime r = Runtime.getRuntime(); System.out.println("M: "+r.maxMemory()); System.out.println("T: "+r.totalMemory()); System.out.println("A: "+r.freeMemory()); System.runFinalization(); System.gc(); System.out.println("A: "+r.freeMemory()); Current reading is: M: 335544320 T: 51200000 A: 23138080 A: 23479384 What I've noticed is that the the 'T' value (Total Memory) slowly increases, but never goes back down. According to the Runtime javadoc, this is the total amount of memory in the JVM. Will this continue to increase? What happens when it hits the Maximum memory amount? Should I be concerned about this? tia bort --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org