Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 67597 invoked from network); 24 Jul 2009 01:13:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jul 2009 01:13:46 -0000 Received: (qmail 71180 invoked by uid 500); 24 Jul 2009 01:14:47 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 71100 invoked by uid 500); 24 Jul 2009 01:14:47 -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 71089 invoked by uid 99); 24 Jul 2009 01:14:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 01:14:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of abiacco@formatdynamics.com designates 209.111.94.85 as permitted sender) Received: from [209.111.94.85] (HELO mx-01.formatdynamics.com) (209.111.94.85) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 01:14:38 +0000 Received: from mx-01.formatdynamics.com (localhost.localdomain [127.0.0.1]) by mx-01.formatdynamics.com (Postfix) with ESMTP id 8C04725DA01 for ; Thu, 23 Jul 2009 19:14:16 -0600 (MDT) Received: by mx-01.formatdynamics.com (Postfix, from userid 502) id 6ADCE25DA02; Thu, 23 Jul 2009 19:14:16 -0600 (MDT) X-Spam-DCC: : mx-01.formatdynamics.com 1356; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mx-01.formatdynamics.com X-Spam-Level: X-Spam-Report: * -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.1 AWL AWL: From: address is in the auto white-list Received: from missoula.formatdynamics.com (missoula.formatdynamics.com [10.10.10.2]) by mx-01.formatdynamics.com (Postfix) with ESMTP id 4D32325DA01 for ; Thu, 23 Jul 2009 19:14:10 -0600 (MDT) Received: from 10.10.10.2 ([10.10.10.2]) by missoula.formatdynamics.com ([10.10.10.2]) with Microsoft Exchange Server HTTP-DAV ; Fri, 24 Jul 2009 01:14:10 +0000 MIME-Version: 1.0 Content-class: Message-ID: <03da01ca0bfc$0c64e3b0$020a0a0a@formatdynamics.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable From: "Anthony J. Biacco" Subject: RE: what is the upper limit of maximum heap memory for Tomcat with 32-bit JVM running on Red Hat Linux 4 (32-bit) thread-topic: what is the upper limit of maximum heap memory for Tomcat with 32-bit JVM running on Red Hat Linux 4 (32-bit) Date: Thu, 23 Jul 2009 19:13:55 -0600 thread-index: AcoL7Zcvzwa/yeANTNqnjI7S/ot2cgAA3aEgAAK/rBY= X-MimeOLE: Produced By Microsoft Exchange V6.5 Importance: normal X-Priority: 3 To: "Tomcat Users List" X-Virus-Scanned: ClamAV using ClamSMTP C:127.0.0.1 L:127.0.0.1 D:Thu Jul 23 19:14:16 2009 -0600 (MDT) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, hits=-4.3 required=7.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 I would do option 2 also if I were him. I doubt his cpus are 32-bit = though. I'm betting any dual core out there is 64-bit, though I wouldn't = bet the farm on it. We use the 64-bit jvm on dual-core xeons without any = problem (rhel5). -Tony Sent from my Windows Mobile=AE phone. -----Original Message----- From: Li,Henry Sent: Thursday, July 23, 2009 6:08 PM To: 'Tomcat Users List' ; = 'alan@compulsivecreative.com' Subject: RE: what is the upper limit of maximum heap memory for Tomcat = with 32-bit JVM running on Red Hat Linux 4 (32-bit) Thank you Alan for your help.=20 I use top to get the 4G free memory: Mem: 8309064k total, 3426680k = used, 4882384k free, 163308k buffers. Your are right, my 4 processors mean 4 cores (2 dual-core processors) I think I will take your workaround #2. Regards, Henry -----Original Message----- From: Alan Chaney [mailto:alan@compulsivecreative.com]=20 Sent: Thursday, July 23, 2009 6:30 PM To: Tomcat Users List Subject: Re: what is the upper limit of maximum heap memory for Tomcat = with 32-bit JVM running on Red Hat Linux 4 (32-bit) You are using a 32 bit operating system and a 32 bit processor. To make=20 more than 4GB of ram available you must ensure that you have PAE support = enabled in your kernel (search Google for Physical Address Extension)=20 which may mean re-compiling for RHEL 4 (see Red Hat). Your processor may = not support it but I'd suspect that when you say 4 processors you=20 probably mean 4 cores and I believe all 4 core Intel CPUs do support=20 PAE. Re-reading your email I see that you say that you have 4.5G of free = memory - how did you determine this? 'top'? Even so, I cannot find any clear statement on the web that the 32 bit=20 JRE will be able to address more than 4G even if you do have PAE=20 enabled. I suspect not. Actually, 'suspect' is way too mild a term ... I = would be completely astounded if you could... Possible workarounds are: 1. Try running 2 JVMs ( when you have PAE enabled) - of course this may=20 not work in your application (you'd have to have two Tomcat instances.) 2. Your other 'workaround' is to install a 64 bit OS and a 64 bit JVM.=20 Then you can have 7G+ for the JVM. Regards Alan Chaney Li,Henry wrote: > My Tomcat is running on 32-bit Red Hat 4 (2.6.9-78.0.1.ELsmp), host = server has 8G physical memory and 4 processors. > java version "1.4.2" gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10) > I got java.lang.OutOfMemoryError > Current configuration: -Xms1024M -Xmx2304M > The host server has about 4.5G free memory. When I tried to increase = -Xmx2304M to -Xmx3000M, I got this error: > Error occurred during initialization of VM, Could not reserve enough = space for object heap > The maximum # I can reach is -Xmx2680M. > QUESTION: Is there an upper limit for -Xmx? What is the work around? = How can I use my free memory on the server to > get rid of the OutOfMemoryError? >=20 > Thanks, > Henry >=20 >=20 >=20 >=20 > !DSPAM:4a68ee3b41041381456296! >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org