I have tasked with allocating 2GB of memory to the Tomcat server, but
I can't seem to allocate more than 1.6GB to Tomcat. I am running
Tomcat 5.5.12 on a Windows 2003 Stand. Ed, SP1 server with 3.83GB of
Memory.
When I go into the management utilty and under the java tab put 2000MB
for Maximum Memory Pool, then apply it and stop and restart the
server, the Tomcat Server doesn't come back up. Instead I get the
following non-descriptive error:
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Date: 6/18/2007
Time: 10:07:41 AM
User: N/A
Computer: M055-EPIWEB
Description:
The Apache Tomcat service terminated with service-specific error 0
(0x0).
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
If I set it back to 1600MB the service then starts back up with no
problem. Is there a limit to the amount of memory tomcat can
handle?
Please help!
==sean.
David Gourley - 19 Jun 2007 22:57 GMT
> If I set it back to 1600MB the service then starts back up with no
> problem. Is there a limit to the amount of memory tomcat can
> handle?
The answer to this question is OS specific. When the JVM process is
created on UNIX, the various regions of the heap are created as memory
mapped files - the sizes of these regions will be limited by the
characteristics of the process in an individual OS.
Remember that thread stacks also come out of the process size, as does
native heap etc.
A quick look around on the web suggests that the limit on Windows
processes may be 2 GB (e.g. see:
http://www.manifold.net/doc/7x/limitations.htm
so a 1.6 GB limit on heap size seems reasonable :-(
Dave
Arne Vajhøj - 04 Jul 2007 04:50 GMT
> I have tasked with allocating 2GB of memory to the Tomcat server, but
> I can't seem to allocate more than 1.6GB to Tomcat. I am running
[quoted text clipped - 5 lines]
> server, the Tomcat Server doesn't come back up. Instead I get the
> following non-descriptive error:
> If I set it back to 1600MB the service then starts back up with no
> problem. Is there a limit to the amount of memory tomcat can
> handle?
Most Java implementations on Win32 has a maximum heap size
in the 1.5-1.8 GB range.
The 1.6 GB seems likely to be that limit.
Only good workaround is a 64 bit OS.
Arne