1

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.

Dmitriy Popov
  • 2,150
  • 3
  • 25
  • 34
Nicholas
  • 41
  • 9

1 Answers1

0
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.

Nicholas
  • 41
  • 9