'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.
Solution 1:[1]
Initial heap size set to a larger value than the maximum heap size can
Means that the maximum heap size is smaller than the initial heap size.
To solve this problem simply add _JAVA_OPTIONS and set it to-Xmx512M -Xms512M.-Xms512M Just sets the initial heap size to 512mb.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nicholas |
