tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Indu Devanath" <i...@speedbuildersystems.com>
Subject Increasing Max Memory in Tomcat resulting in failed startup of Tomcat
Date Tue, 23 Jan 2007 15:00:40 GMT
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

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message