I've recently upgraded a 64-bit system from 16GB to 32GB. Now any Java application fails to start with the dreaded
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine
.
...unless one specifies a maximum heap size with
-Xmx
.
Two questions:
1. Why does the JVM suddenly have this problem just because the physical memory size has increased?
2. How can I set the default max heap size globally, for all users? I particularly need to do this for the Java browser plugin for Firefox.
My system is x86_64 running openSUSE 11.1. JDK 1.6.0_15 (64-bit).