Startup Generator

v1.0

Generate optimized startup scripts for your Minecraft server with Aikar's flags and more.

Server Configuration

Generated Script (start.sh)

#!/bin/bash

java -Xmx4G -Xms4G -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

About Aikar's Flags

🚀 What are Aikar's Flags?
Aikar's flags are a set of JVM arguments specifically tuned for Minecraft servers. They optimize garbage collection to reduce lag spikes and improve overall server performance.

💡 Recommendations:

  • Use standard Aikar's Flags for servers with 4-12GB RAM
  • Use Aikar's Flags (12GB+) for high-memory servers
  • Use Proxy Flags for BungeeCord/Velocity
  • Set Xms and Xmx to the same value for best performance