, until I tried increasing Tomcat
sessions from 6 to 7, then I received the java.lang.OutOfMemoryError when
starting the Tomcat sessions.
I've read through many of the posts on this subject, some of which suggest
to increase the heap size. Unfortunately, I'm a newbie to Java (and Linux
and JSP
The java command line option you want is actually -Xmx256m to set the
maximum heap size. To set this, you can establish an environment variable
named TOMCAT_OPTS (Tomcat 3.x) or CATALINA_OPTS (Tomcat 4.x) that contains
the command line options to be sent to the JVM. For example:
export
R. McClanahan
Sent: Saturday, 25 August 2001 11:42
To: Tomcat Users List; Max Hugen
Subject: Re: OutOfMemory - Set Java Heap Size?
The java command line option you want is actually -Xmx256m to set the
maximum heap size. To set this, you can establish an environment variable
named TOMCAT_OPTS
Hi,
I am facing out of memory problem after continuous access of the tomcat.
I want to set the maximum heap size that can be used by TOMCAT.
what do i need to do for changing the max heap size?
regards,
Bhala
Tomcat is a Java application like any other so you can change the max heap size
the same as you would for anything else.
For the Sun JDK 1.3 (and probably 1.2) all you have to do is run it like:
java -Xmx128M some.class.to.Run
Just replace the "128M" with the maximum heap s
HI,
I am working on a 265MB NT m/c.
If i dont do any specific configuration and if the memory consumed by tomcat
reaches about 64mb, then TOMCAT starts giving outofmemory exception.
I tried setting the heap size as suggested, using the following command in
tomcat.bat
set TOMCAT_OPTS= -Xmx128m
101 - 106 of 106 matches
Mail list logo