[英]Initial heap size set to a larger value than the maximum heap size
Im trying to start a .jar file with these args:我试图用这些参数启动一个 .jar 文件:
"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覆盖当前的 JAVA_OPTS 值
-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我建议在 Xms 和 Xmx 之间保持速率 1 到 2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.