Gaurav Kushwaha wrote:
A quick fix would be to specify minimum and maximum heap size using JVM
parameters -Xms and -Xmx. -Xms specifies the minimum heap size and
-Xmx is
used to determine the maximum allowed heap size.
So, lets say if you have enough memory to allocate 512 MB to your java
process you shoud write something like:
java -Xms512M -Xmx512M.
I think java by default doesn't expand the heap beyond a certain limit
and
that limit is pretty low so that might be the cause of your problem.
Well in most cases the default heap size does good enough. In some cases
we may have to increase it. But in case this too doesn't work, try
profiling your code.
On 11/14/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Subject: Tomcat Out Of Memory
>
> We are running Tomcat 4.1.18 on RedHat ES3 using JDK 1.4.2_02.
> What is causing the error message below and What can I do to solve it?
Start by reading the FAQ:
http://tomcat.apache.org/faq/memory.html
You will need to collect more information.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Santosh.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]