Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 83969 invoked from network); 5 Feb 2010 16:14:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 16:14:38 -0000 Received: (qmail 72370 invoked by uid 500); 5 Feb 2010 16:14:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 72303 invoked by uid 500); 5 Feb 2010 16:14:34 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 72292 invoked by uid 99); 5 Feb 2010 16:14:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 16:14:34 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.17] (HELO qmta10.westchester.pa.mail.comcast.net) (76.96.62.17) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 16:14:24 +0000 Received: from omta12.westchester.pa.mail.comcast.net ([76.96.62.44]) by qmta10.westchester.pa.mail.comcast.net with comcast id eDzc1d0070xGWP85AGE4Vk; Fri, 05 Feb 2010 16:14:04 +0000 Received: from [192.168.1.202] ([98.218.200.175]) by omta12.westchester.pa.mail.comcast.net with comcast id eGE41d0073nZbXm3YGE4wd; Fri, 05 Feb 2010 16:14:04 +0000 Message-ID: <4B6C43CA.4010200@christopherschultz.net> Date: Fri, 05 Feb 2010 11:14:02 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Heap size rule for Tomcat 5.5 References: <27463924.post@talk.nabble.com> In-Reply-To: <27463924.post@talk.nabble.com> X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Evebill8, On 2/5/2010 1:08 AM, evebill8 wrote: > I heard the rule to set the Tomcat's heap size is 2/3 of the memory. I agree with Chuck: this sounds like malarkey. Whoever told you that doesn't know what they're talking about. The rule for any Java program is: set the heap to whatever you need to properly run your program. For instance, our production machine has a mere 2GiB of memory and our main JVM (we run 3 simultaneously) is configured to run with a 192MiB heap... much less than the "recommended" 1.3GiB heap you stated above. Our webapp runs very lean in memory and we don't have so many simultaneous users that we have tons and tons of sessions laying around. > We are running Tomcat 5.5 on the 64-bit Linux. The box has 16GB of > RAM, and we just allocate 8GB to heap. Do you even need that much? We only recently raised the heap size from the default (in our environment) 64MiB heap, where it was running just fine until our user load increased. > If the rule is true, this means I can allow at > least 10GB to Tomcat, and leave 6GB to the OS. If there's nothing else running, the OS can certainly run comfortably in 6GiB of memory. Your OS ought to fit comfortable in a few /MiB/, let alone a few GiB. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktsQ8oACgkQ9CaO5/Lv0PD+dQCeMOJqBETDFKgtzaqZ3NhyFXoP VXAAoJZ+x/2OtZM8w60arQkl/K6seIFy =99qv -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org