首页 > 解决方案 > Minecraft forge automatically sets _JAVA_OPTIONS environment variable

问题描述

I just started making minecraft mods and everything went fine until I ran the program (minecraft forge 1.12.2). It said:

Initial heap size set to a larger value than the maximum heap size can  
after that: picked up _JAVA_OPTIONS: -Xmx512M  
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release.

When I checked my environment vraiables, I found _JAVA_OPTIONS and deleted it, but the problem remains, What should I do?

I am on a Windows 10 computer and have 8 GB ram.

标签: javaenvironment-variablesminecraft-forge

解决方案


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

表示最大堆大小小于初始堆大小。
要解决此问题,只需添加 _JAVA_OPTIONS 并将其设置为
-Xmx512M -Xms512M.
-Xms512M只需将初始堆大小设置为 512mb。


推荐阅读