1

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.

  • 1
    -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. – MinecraftShamrock Dec 7 '14 at 13:23
  • @MinecraftShamrock The problem is that something is overriding the Java Options I'm setting. I want to remove this override. – Kaz Wolfe Dec 7 '14 at 21:58
  • Are you launching it using a script or using the "additional java options" in the launcher? – user28379 Dec 9 '14 at 0:54
  • @JeffreyLin Additional Java Options – Kaz Wolfe Dec 9 '14 at 1:48
2

According to this, it's due to Razer. If you have Razer programs open, shut them all down & try again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.