Skip to content
Bicore Logo
BICORE
Shyam StudioMinecraft Best PvP & Economy Resources by Shyam StudioYou can also put ads by giving $5 per week

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 7 or 8. This controls how many chunks are sent to the client.
  • entity-activation-range: (in spigot.yml) Lower animals to 16 and monsters to 24 to 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 nogui

4. 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 start

5. 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