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.
-Xmx
specifies the maximum heap size.-Xms
specifies the initial heap size - that means the memory that will be allocated even if it is not needed right now. Try decreasing-Xms
.