Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

Tomcat 5.5 Memory Problem

Thread view: 
oldmankirby@gmail.com - 18 Jun 2007 15:23 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
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.