Li,Henry wrote:
> My Tomcat is running on 32-bit Red Hat 4 (2.6.9-78.0.1.ELsmp), host server 
> has 8G physical memory and 4 processors.
>  java version "1.4.2"  gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10)
> I got java.lang.OutOfMemoryError
> Current configuration: -Xms1024M -Xmx2304M
> The host server has about 4.5G free memory. When I tried to increase 
> -Xmx2304M to -Xmx3000M, I got this error:
> Error occurred during initialization of VM, Could not reserve enough space 
> for object heap
> The maximum # I can reach is -Xmx2680M.
> QUESTION: Is there an upper limit for -Xmx? What is the work around? How can 
> I use my free memory on the server to
> get rid of the OutOfMemoryError?

Apologies if this is an obvious question, but have you checked that the
applications deployed on your server have no memory leaks?

A memory leak can well be the cause for an OutOfMemoryError, and
upping the amount of memory reserved will just delay the death but
not prevent it. Actually fixing the application defect can result
in being able to run the server with significantly smaller amount
of memory.
-- 
..Juha

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to