I have a 64 bit machine with 8 GB RAM , windows 7. I am using 64 bit JVM. Still I am unable to set Max heap size more than 1600 M. I have read almost all the answers related to this topic on stackoverflow.
Whenever I try to set max heap as -Xmx2048M I am getting:
Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.
I have tried setting max heap size with _JAVA_OPTION
system variable and also through:
Run -> Run Configuration -> Arguments path.
Both the times I am getting same error. RAM is almost free.
What is getting wrong?