I have an application that at startup requests a certain amount of RAM using the following command.
java -Xms512m -Xmx985m -jar someJarfile.jar
This command does not run on my computer with 8.0 GB of RAM, because it cannot create a bunch of objects of the specified size. If I lower the maximum range to less than 700 MB, it works fine.
Even stranger, even the execution of simple java -Xmx768m -version fails when the value of the -Xmx flag exceeds 700 m. I try to run it using Java 1.7Uu67 32-bit (this is what the jar was built with), and even newer versions of Java 1.7 and event Java 1.8. I would understand if the maximum heap was higher, and I used 32-bit, but it is not higher than the cap ~ 1.4 GB of 32-bit java
Is there a configuration parameter that I am missing somewhere that can cause this, some kind of software that may interfere? It makes no sense to me why I cannot allocate 700 MB of RAM on a machine with 8.0 GB of RAM. I
I should also note that no other processes are running that take up all of my RAM. This is a new version of Windows 7.
source share