I bought a VServer and I already have a TeamSpeak server installed. Now I'm about to install a Minecraft server and have the following start.sh script for it
#! / Bin / bash
while true; do
echo "" echo "######################################" echo "# # Auto Restart Script ## "echo" ## ## "echo" ## Press Ctrl + C ONLY when this ## "echo" ## message shows to stop the loop ## ## echo "###### ################################## "echo" Starting in 5 seconds… "sleep 1 echo" Starting in 4 seconds… "sleep 1 echo" Starting in 3 seconds… "sleep 1 echo" Starting in 2 seconds… "sleep 1 echo" Starting in 1 seconds… "sleep 1
java -Xms128M -Xmx7000M -jar spigot-1.8.8.jar --log-strip-color
done
How can I allocate more RAM to the server using this script? Where and how should I enter this?
Edit -Xmx7000M as you like. M stands for MB.
-Xmx7G would therefore mean 7GB
Thank you, and I have to do something
You can even let it out completely. With the value you can only give you performance problems
Okay, so I should just paste it like that?
java -Xmx7000M -jar spigot-1.8.8.jar --log-strip-color
Just like that
Okay, thank you.
But you can never allocate more RAM than you have… So 7g is only possible if your V-Server has at least 8gb…
I would recommend setting xms and xmx to the same value. Then Java takes the complete memory directly and does not change it again and again. Does the performance benefit and you do not run the risk of another program taking away the Java process RAM.
Yes have 12GB