Im trying to start a .jar file with these args:
"C:\Program Files\Eclipse Foundation\jdk-16.0.2.7-hotspot\bin\java.exe" -Xmx4G -Xms3G -jar paper.jar
and I get the error:
Picked up _JAVA_OPTIONS: -Xmx512M
Initial heap size set to a larger value than the maximum heap size```
CodePudding user response:
Delete the _JAVA_OPTIONS environment variable.
CodePudding user response:
Override the current JAVA_OPTS value
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
I am suggesting to keep on rate 1 to 2 between Xms and Xmx