I have 8GB memory and I am trying to allocate 4GB to one of the
java processes as;
java -Xmx4000m testpck.testPrg
But this seems to give the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I have double checked my RAM size and it is 8GB with 16G swap space. What could I be possibly missing? Is there some other setting in jvm options I need to specify?
Thanks in advance for the help.
--sayali