Java start script on VDS fails to start

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Slacker965
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Aug 30, 2018 4:49 pm

Java start script on VDS fails to start

Post by Slacker965 »

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.
Slacker965
New to forums
New to forums
Posts: 2
Joined: Thu Aug 30, 2018 4:49 pm

Re: Java start script on VDS fails to start

Post by Slacker965 »

Solved on my own server refused to use 64 bit java.
User avatar
Edge100x
Founder
Founder
Posts: 12945
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Java start script on VDS fails to start

Post by Edge100x »

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.
Post Reply