Minecraft Server Start Command Generator (Aikar Flags)
Pick RAM and server software; generate a ready start.bat and start.sh file with Aikar flags. Supports Paper, Purpur, Velocity, Fabric.
How to start a Minecraft server?
- Choose the server software, the RAM you'll allocate and the operating system.
- Download the generated file and put it in the same folder as the server jar. If the jar has a different name, change the "Jar file name" field.
- Linux: give it run permission with
chmod +x start.shand start it with./start.sh(usescreenortmuxto keep it running in the background). - Windows: double-click the
start.batfile.
Aikar flags are the Java garbage collector settings recommended by the Paper team. Minecraft servers create a lot of temporary objects in a short time; with default Java settings the garbage collector freezes the server from time to time, and players feel this as lag. Aikar flags shorten these pauses. When more than 12 GB of memory is allocated, the tool automatically uses the recommended large-memory values.
Giving more RAM is not always better: more memory means longer garbage collection times. 6-12 GB is enough for most servers with plugins; don't allocate all of the machine's memory, leave 1-2 GB for the operating system. Proxy servers (Velocity, BungeeCord) run on much less memory (512 MB – 2 GB). You can find which version needs which Java on the Version and Protocol page.
Guides related to this tool
Frequently Asked Questions
What are Aikar flags?
Aikar flags are the Java garbage collector (G1GC) settings recommended by the Paper team. They reduce sudden freezes (lag spikes) on the server and use memory more efficiently.
How much RAM should I give my server?
4-6 GB is usually enough for a small survival server and 8-12 GB for a server with plugins and 20-50 players. Don't give all of the machine's RAM; leave 1-2 GB for the operating system.
Why should Xms and Xmx be the same?
With Aikar flags, setting Xms and Xmx equal is recommended; Java allocates the memory up front and doesn't waste time growing and shrinking it while running.
Which Java version is required?
26.x versions need Java 25, 1.20.5 and above need Java 21, 1.18 through 1.20.4 need Java 17, and 1.16 and earlier need Java 8 or 11. Details are on the Version and Protocol page.
Other Minecraft Server Tools
Is your server ready? Add your server to the list, collect votes and automatically reward your players. All tools →