Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

setting opts to avoid OutOfMemory errors

Hans Steinraht

2003-12-13

Replies:

Maybe someone can help me out with some questions I have to avoid the
OutOfMemory errors that I have from time to time

The computer where Tomcat, version 4.1.24, is running is a linux machine
wit 500M memory
and j2sdk1.4.1.

I have read in this newsgroup that the solutions to avoid OutOfMemory
errors is to set the
initial size of the memory allocation pool Xms to a value and also the
max size Xmx.

In this I have to questions:
    1. what are the best values?
    2. happends when I set the values to high?

I have tried running tomcat with JAVA_OPTS="-Xms64m -Xmx256m", but the
problem still occurs, so can I set Xmx to 500m, but what is than happening
with the memory left (maybe there isn't) for tha other applications on thie
machine.

I hope someone can clear things a bit up for me,
Hans



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.