Maximum Heap Size for Tomcat 6 at 64 bit CentOs?

I am running a tomcat 6 instance on a large EC2 instance running under CentOS 5.4. The box has 7.5 GB of RAM and is designed to work with tomcat.

I am trying to provide a box of 6 GB of RAM to use the maximum heap in it. However, I keep getting this error:

Invalid maximum heap size: -Xmx6144m
The specified size exceeds the maximum representable size.

As I discard the amount of RAM that I give him, I start getting this error:

Error occurred during initialization of VM
Could not reserve enough space for object heap

Even when starting the application (with xmx3000m) at startup, I release this amount:

 [tomcat@producer1:/usr/share/tomcat/logs] $free
             total       used       free     shared    buffers     cached
Mem:       7864320    1512736    6351584          0     179948     702352
-/+ buffers/cache:     630436    7233884
Swap:            0          0          0

The most that I can give is 3000 m. It seems unreasonably small. Does anyone have any ideas? Thanks

+3
source share
1 answer

64- JDK? 32- JDK, 4 (). 6 , 64- JDK. , 7,5 , 6 - . CentOS , , SWAP .

, , 5G . JDK , permgenspace ( 128M - 512M , / )

: http://benjchristensen.com/2007/02/16/32-bit-versus-64-bit-jdk-memory-usage/

+3

All Articles