简体   繁体   中英

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 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```

删除_JAVA_OPTIONS环境变量。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM