Error VM Initialization when setting Xmx to 4g
843811Jul 26 2004 — edited Jun 6 2006Hi,
My environment is using the
1. tomcat-4.1.30
2. j2re1.4.2_05
3. Redhat Linux 3.0 AS
4. 12G RAM
5. 150G Harddisk
Swap space set to 24G
When I tried to set the Xmx2g to 3g , I hit this error message and the JVM exit by itself.
"Error occurred during initialization of VM
Could not reserve enough space for object heap"
When I tried to set the Xmx4g and above , I hit this error message and the JVM exit by itself.
"Invalid initial heap size: -Xms4g
Could not create the Java virtual machine."
I have gone through the setting of JVM option and swap space increase through most of tips/release notes/ forum/ bugs reported yet I cannot really find the solution why the 2g and above cannot be set to -Xmx.
Anyone any idea to overcome this cause the system loads is increasing lately and we tried to add more RAM to see what kind improvement we can get?
Regards,
Chong