MC ToolboxMC TOOLBOX

Server & Files

Server Start Script Generator

Generate Windows start.bat and Linux start.sh for your Minecraft server jar. Set heap size and optional Aikar JVM flags.

Java process

Accept eula.txt before first start. Flags are a common starting point; tune for your host and Paper/Purpur version.

Generated scripts

===== start.bat =====
@echo off
:start
java -Xms2G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar "server.jar" nogui
echo Server stopped. Restarting in 5 seconds...
timeout /t 5
goto start

===== start.sh =====
#!/usr/bin/env bash
while true; do
  java -Xms2G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar 'server.jar' nogui
  echo "Server stopped. Restarting in 5 seconds..."
  sleep 5
done

Server & Files

Minecraft Server Start Script Generator

Makes a start.bat and a start.sh so you are not rewriting the same java -Xmx line every time. Optional Aikar-style flags and a restart loop if you want them.

What this tool does

Pick the jar name, min/max RAM, GUI or not, restart loop or not, and whether to stick on the common G1 flag set. Download both Windows and Linux scripts.

After you download

Accept eula first. Put the script next to the jar. On Linux you may need chmod +x start.sh. On Windows, double-click usually works if Java is on PATH.

Honest bit

Flags will not magically fix a bad host or fifty laggy plugins. They are a decent starting point. Watch Spark or timings after you go live.

Quick questions

Will flags fix TPS?

Sometimes they help a bit. They do not fix bad plugins or a weak CPU.

Paper / Purpur ok?

Yes. Just use the real jar filename.

Xms same as Xmx?

A lot of people do that so the heap does not keep resizing. Leave some RAM for the OS though.

What do you think about this tool?

If something feels wrong, a Minecraft version is missing, the wording is confusing, or you have a better workflow idea, send it over. Real player feedback is how these tools get sharper.

Send feedback

Server & Files

Minecraft Server Start Script Generator

Makes a start.bat and a start.sh so you are not rewriting the same java -Xmx line every time. Optional Aikar-style flags and a restart loop if you want them.

What this tool does

Pick the jar name, min/max RAM, GUI or not, restart loop or not, and whether to stick on the common G1 flag set. Download both Windows and Linux scripts.

After you download

Accept eula first. Put the script next to the jar. On Linux you may need chmod +x start.sh. On Windows, double-click usually works if Java is on PATH.

Honest bit

Flags will not magically fix a bad host or fifty laggy plugins. They are a decent starting point. Watch Spark or timings after you go live.

Quick questions

Will flags fix TPS?

Sometimes they help a bit. They do not fix bad plugins or a weak CPU.

Paper / Purpur ok?

Yes. Just use the real jar filename.

Xms same as Xmx?

A lot of people do that so the heap does not keep resizing. Leave some RAM for the OS though.

What do you think about this tool?

If something feels wrong, a Minecraft version is missing, the wording is confusing, or you have a better workflow idea, send it over. Real player feedback is how these tools get sharper.

Send feedback