Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 83372 invoked from network); 23 Jan 2007 15:01:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 15:01:30 -0000 Received: (qmail 77195 invoked by uid 500); 23 Jan 2007 15:01:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 77174 invoked by uid 500); 23 Jan 2007 15:01:22 -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 77163 invoked by uid 99); 23 Jan 2007 15:01:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 07:01:22 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [205.152.59.67] (HELO imf19aec.mail.bellsouth.net) (205.152.59.67) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 07:01:13 -0800 Received: from ibm60aec.bellsouth.net ([68.222.235.62]) by imf19aec.mail.bellsouth.net with ESMTP id <20070123150051.TPWR3572.imf19aec.mail.bellsouth.net@ibm60aec.bellsouth.net> for ; Tue, 23 Jan 2007 10:00:51 -0500 Received: from SBS007 ([68.222.235.62]) by ibm60aec.bellsouth.net with ESMTP id <20070123150050.BSYI26200.ibm60aec.bellsouth.net@SBS007>; Tue, 23 Jan 2007 10:00:50 -0500 From: "Indu Devanath" To: Cc: Subject: Increasing Max Memory in Tomcat resulting in failed startup of Tomcat Date: Tue, 23 Jan 2007 10:00:40 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001F_01C73ED5.56D1E1A0" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: Acc+/z88I85Q8qgJQnaZnG9IBPdKNA== Message-Id: <20070123150050.BSYI26200.ibm60aec.bellsouth.net@SBS007> X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_001F_01C73ED5.56D1E1A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello all, I as using Tomcat version 5.0.28 as a windows service on a HP PROLIANT DL380 G4 7/3.0 2MB 1GB (Dual processors) running Windows 2003 server. I have 4 GB of ram installed in the server. Under system information Windows has 3583.47 MB for Total Physical Memory. Ok, here is the issue, I right clicked on the Tomcat icon in the system tray, clicked on configure, then on the java tab. Under Initial memory pool I have 512 MB and under Maximum Memory Pool, I put in 2048 (I had 1024 previously) I tried to start tomcat but It wouldn't start up. Any ideas why Tomcat would not take the Max memory setting of 2GB. I did find an entry from the archives (see below), if I am understanding Chuck's reply (from entry below) there should be a 2GB limit not a 1GB limit correct? On my test box, which has 2GB of memory, I was able to enter "1500" under the max memory pool and Tomcat started just fine. I went to "1600" and Tomcat wouldn't start. Can anyone offer any help on this subject. Thanks! ---------------------------------------------------------------------------- ------------------------------------------------- > From: Joe Reger, Jr. [mailto:joe@joereger.com] > Subject: Tomcat Won't Start When >1024Mb JVM Memory Specified > > Is there a 1Gb limit on the JVM? On Tomcat? Not on those, but Windows normally provides only 2GB of virtual space for each process. (There's an initialization switch that can change this to 3GB, but that introduces some other issues.) Unfortunately, this space is fragmented, and the JVM heap is allocated in one contiguous chunk (at least it was in 1.4.1). I'm a bit surprised you ran out at 1GB. > Should I configure by editing startup.bat/catalina.bat instead? Definitely makes it easier to fiddle with the values until you find the maxima. You don't need to start Tomcat to play with -Xmx and the other heap settings - a simple HelloWorld will suffice. Always set -Xms and -Xmx to the same value when you're trying to find the limit. - Chuck ------=_NextPart_000_001F_01C73ED5.56D1E1A0--