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.
Server & Files
Generate Windows start.bat and Linux start.sh for your Minecraft server jar. Set heap size and optional Aikar JVM flags.
Accept eula.txt before first start. Flags are a common starting point; tune for your host and Paper/Purpur version.
===== 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
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.
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.
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.
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.
Sometimes they help a bit. They do not fix bad plugins or a weak CPU.
Yes. Just use the real jar filename.
A lot of people do that so the heap does not keep resizing. Leave some RAM for the OS though.
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.
Server & Files
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.
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.
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.
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.
Sometimes they help a bit. They do not fix bad plugins or a weak CPU.
Yes. Just use the real jar filename.
A lot of people do that so the heap does not keep resizing. Leave some RAM for the OS though.
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.