Good Day,
I just rented a VDS in an attempt to test it out however it will not allow me to run a Java instance with -Xms1024M -Xmx2048M Flags
The full string is
java -Xms1024M -Xmx2048M -jar spigot-1.12.2.jar
The error is
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
This command has worked on another Dedicated box I rented in the past and on my local machine, is there a different flag for this to run in a VDS environment? if I drop the Xms and Xmx flags it will run but then there is no limit on the usage and I specifically got 11 gigs of ram to run multiple instances.
Any help is appreciated.
Java start script on VDS fails to start
-
- New to forums
- Posts: 2
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Aug 30, 2018 4:49 pm
-
- New to forums
- Posts: 2
- Joined: Thu Aug 30, 2018 4:49 pm
Re: Java start script on VDS fails to start
Solved on my own server refused to use 64 bit java.
Re: Java start script on VDS fails to start
I'd definitely recommend switching to 64-bit Java. We use it across our network and have for many years (including on VDSes) and it works well.