Aikar flags
Generate flags
Gigabyte of memory
Memory should be a number
Name server jar
Name should end with ".jar"
java -Xms4G -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
What are Aikar flags?
Aikar flags are garbage optimization flags for minecraft servers. The were researched by Aikar. You can find his artickel on it here.
Flags are settings for java and the java garbage collector. A garbage collector has the simple job of collecting memory than is not used anymore. Depending on your server, you create a certain amount of garbage over time. This has te be cleanup otherwise your server will run out of RAM. Cleaning up this garbage can create big lag spike if there is a lot of garbage. Therefor optimizing it can improve performance.