I have a program that is very memory consuming and thought to assign more maximum memory to the java jvm using -Xmx2048m. But when starting I get a 'Could not reserve enough space for object heap' error.
When trying several values and found out that my greatest value is -Xmx1560m and it starts. But I like to assign 2GB. I have 6GB physical Memory and Taskmanager shows 3400MB available after I started the java-process with -Xmx1560m.
Do anyone know why I can't assign 2GB ?