Minecraft Incompatible Heap Sizes

minecraft-java-editiontechnical-issues

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.

Related Topic