Minecraft startup command generator
Pick your server type and memory and get a start script with the Java flags most servers should use, ready to save next to your server jar.
start.sh
Why not give Java all the memory?
Java needs room outside the game's own memory for itself, threads and the network. If the server's total use goes over what the machine or plan has, it gets killed without warning, so we leave some free.
Why are -Xms and -Xmx the same?
The server takes all its memory at the start instead of growing into it, so there are no pauses later while Java asks for more.
Where the flags come from
Game servers use Aikar's flags, which tune Java's G1 garbage collector so it pauses in short, regular steps instead of freezing the server. Proxies use the flags Velocity recommends.
Skip the start script
On Sudolix Minecraft hosting the panel sets the memory and flags for your plan, and you switch between Paper, Fabric and Forge from a dropdown. We're not selling yet, so create an account to hear first when we open.