Tomcat 5.5 Memory Problem

O

oldmankirby

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.
 
D

David Gourley

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
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

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:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top