Invalid initial heap size: -Xms Error: Could not create the Java Virtual Machine


#1

I am trying to start a sky factory 3 server and i cant seem to get it to work
This is what keeps coming up, help greatly appreciated!


#2

Wrong forums buddy. This is ArdaCraft: https://ardacraft.me/about/


#3

Most of the time you can fix this problem by uninstalling the Java runtime and then reinstalling it all over again.

Most of the time you can fix this problem by uninstalling the Java runtime and then reinstalling it all over again. In a nutshell, the instructions show you how to make a System Variable for Java called _JAVA_OPTIONS with the value Xmx512M. This sets a global maximum heap memory size for Java. You can solve this by:

Open the Control Panel
Go to System
Go to Advanced Systems Properties
Then Environment Variables
In System Variables, click Add
New Variable Name: _JAVA_OPTIONS
New Variable Value: -Xmx512M
Click OK

That’s it, your Java program should now be able to execute properly.
For those interested, Java -Xmx/s is the configuration parameter that control the amount of memory Java uses.

Xmx sets the maximum heap memory size
Xms sets the minimum heap memory size