2. Your other 'workaround' is to install a 64 bit OS and a 64 bit JVM. Then you can have 7G+ for the JVM.

Actually, to be totally clear, you can have pretty much as much memory as you have physical ram in the machine. In your case that's 7G+

For more info on the 64bit JVM see http://java.sun.com/docs/hotspot/HotSpotFAQ.html#64bit_heap

Apparently RHEL 4 x64 supports up to 16GB and RHEL 5 claims 'unlimited'
but I'll bet no-one has actually tried it with 16 TB.





Regards

Alan Chaney



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?

Thanks,
Henry







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



!DSPAM:4a68f4e844863033718476!


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

Reply via email to