Skip to content
Advertisement

Initial heap size set to a larger value than the maximum heap size

Im trying to start a .jar file with these args:

"C:Program FilesEclipse Foundationjdk-16.0.2.7-hotspotbinjava.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```

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement