Reduce Minecraft Lag: Practical Optimization Guide
Fix high MSPT and low TPS with quick, high-impact server tweaks.
Reading time: 2 min read
Reduce Minecraft Lag: Practical Optimization Guide
Lag usually comes from chunk overload, plugin spikes, or CPU bottlenecks. Following modern optimization standards can significantly improve your server's TPS and MSPT.
1. Choose the Right Server JAR
Your choice of server software is the foundation of performance. While Paper and Purpur are great, for high-traffic servers, we recommend:
- LeafMC: A high-performance fork designed for massive player counts with advanced multithreading patches.
2. Essential Configuration Tweaks
Lowering these values in server.properties and spigot.yml provides instant CPU relief:
- simulation-distance: Set to
4. This ticks things like crops and furnaces only within 4 chunks of the player. - view-distance: Set to
7or8. This controls how many chunks are sent to the client. - entity-activation-range: (in
spigot.yml) Loweranimalsto16andmonstersto24to reduce ticking load.
3. Optimize Java Startup Flags
Don't use default flags. Use Aikar's Flags to optimize garbage collection and prevent "GC lag spikes." Generate your specific flags at flags.sh.
Example for 8GB RAM:
java -Xms8G -Xmx8G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -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 leaf.jar nogui4. Map Pregeneration
Use Chunky to pre-generate your world. Generating chunks on the fly is one of the biggest causes of lag spikes.
/chunky radius 5000
/chunky start5. Audit Plugins
Use /spark profiler open --timeout 120 to identify which plugins are eating your tick time. Always prefer lightweight alternatives and avoid "all-in-one" plugins that run heavy tasks on the main thread.
Detailed Guide
For further high-impact tweaks and technical explanations, check out the official Minecraft Optimization Guide on GitHub.
Related posts
How to Allocate More RAM to Minecraft
If your Minecraft is stuttering or crashing, it might be running out of memory. Learn how to allocate more RAM in the Java Edition launcher.
Top 5 Minecraft Performance Mods for 1.21.1 (Sodium & More)
If your Minecraft Java Edition is lagging, you need these mods. Learn how Sodium, Lithium, and Iris can triple your FPS instantly.
Top 3 Minecraft PvP Texture Packs for Performance & Visibility
Is your visibility blocked by fire and items? Discover the best 8x and 16x texture packs designed for low particles and high FPS.
