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
  • 1,814
  • 2
  • 19
  • 28
Nicholas
  • 31
  • 7

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
  • 31
  • 7