please help ! tomcat 5.5 java heap error

Hi,

I am running Tomcat 5.5.16 on windows server as NT service and have run into an issue where I am getting the following message "java.lang.OutOfMemoryError: Java heap space".

I tried many options to increase this heap size (before I would get an OutOfMemoryException but now it is the "OutOfMemoryError: Java heap space" error.

What I have already tried :

1.

Defined environment variables:

JAVA_OPT=-client -server -Xms512M -Xmx512M

JAVA_OPTS=-client -server -Xms512M -Xmx512M

CATALINA_OPT=-client -server -Xms512M -Xmx512M

CATALINA_OPTS=-client -server -Xms512M -Xmx512M

2. ran tomcat5w.exe -Vmargs -Xmx512M but got an error message

3. added in the registry under -

HKEY_LOCAL_MACHINE

SOFTWARE

Apache Software Foundation

Procrun 2.0

Tomcat5

Parameters

Java

Add 4 variables:

JVM Option count = 3

JVM Option number 0 = -server

JVM Option number 1 = -Xms512m

JVM Option number 2 = -Xmx512m

** What else can be done ?

Thanks

[1093 byte] By [Ace1977a] at [2007-10-2 23:57:51]
# 1
i am facing the same problem, is there any one can help
Jolioa at 2007-7-14 16:44:50 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

As you know, you specify Java heap size via: -Xms<size> -Xmx<size>

to specify a start and a max size of the heap. In addition -verbose:gc

will tell you when GC occurs; -XX:+PrintHeapAtGC should tell you

the state of the heap when GC occurs. Armed with that you should be

able to ascertain that your heap settings are perhaps inadequate and

that you might need a larger -Xmx setting?

ramki_at_jdca at 2007-7-14 16:44:50 > top of Java-index,Java HotSpot Virtual Machine,Specifications...