Minecraft Incompatible Heap Sizes?
I changed my Java XMX to have 2GB of RAM because I hate the lag I'm getting, but I get a strange error message:
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
Picked up _JAVA_OPTIONS: -Xmx512M
My commandline:
-Xmx2G -Xms2G
Whatever this _JAVA_OPTIONS is, it's overriding my XMX setting. I've looked through all of my Windows configs, but I have been unable to find it. Why is it happening, and how do I fix it?
I have no environment variable named _JAVA_OPTIONS in my system that I can see.
Upon further testing, this only happens with the Minecraft exe file. When lanuching the Launcher JAR, it works perfectly.
Best Answer
According to this, it's due to Razer. If you have Razer programs open, shut them all down & try again.
Pictures about "Minecraft Incompatible Heap Sizes?"



How do I fix invalid heap size?
64 bit JVM installed on Solaris machines runs with a 32-bit model if you don't specify either -d32 or -d64, which won't accept a Maximum heap size of 4GB, hence "invalid heap size". You can resolve this issue by running Solaris JVM with option -d64.How do you fix initial heap size set to a larger value than the maximum heap size?
To get rid of this error, the value of Xmx(maximum heap size) should always be greater than or equal to Xms(minimum heap size). Run the HelloWorld program with the value of Xms(minimum heap size) set to 1 gigabyte and Xmx(maximum heap size) set to 2 gigabytes.How do I increase my Java heap space?
To add more RAM to the heap, you should pass the flags -Xms and -Xmx to the JVM. -Xms specificates how much memory Java will initially allocate for heap space, and -Xmx will be the maximum heap space that can be allocated.What is initial heap size?
Initial heap size is 1/64th of the computer's physical memory or reasonable minimum based on platform (whichever is larger) by default. The initial heap size can be overridden using -Xms. Maximum heap size is 1/4th of the computer's physical memory or 1 GB (whichever is smaller) by default.How To Fix Invalid Heap Size Error for Minecraft Servers **JAVA**
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Karolina Grabowska, SHVETS production, Dziana Hasanbekava, Karolina Grabowska
