Minecraft Server Optimization: A Practical Guide

reviewed by

Most lag isn't a RAM problem. It's the server failing to finish a tick in 50 ms because of entities, chunk loading or one bad mod. Measure first, then fix: here is the order we use.

Quick picks

#HostFromBest for
1 GodLike Host See site One-click Forge/NeoForge packs, auto-updates
2 BisectHosting See site 2,300+ modpacks, 21 locations
3 BloomHost $12.00/mo Dedicated Ryzen cores for heavy packs
4 PebbleHost $1.00/mo Cheap RAM, upload mods yourself

Step 1: measure

Install spark and run /spark tps and /spark profiler for a few minutes while players are online. Look at MSPT: under 50 ms is fine, above it the server is falling behind.

Step 2: fix the common causes

Symptom in spark Likely cause Fix
Entities tick high Mob farms, dropped items Limit farm size, clear items
Chunk generation high Players exploring new land Pre-generate with Chunky
One mod dominates A specific mod Update, configure or remove it
GC pauses Heap too small or too large Set -Xmx to what the pack needs

Step 3: minecraft server optimization mods

  • Forge / NeoForge: ModernFix, FerriteCore.
  • Fabric: Lithium, C2ME, FerriteCore.
  • Any loader: Chunky to pre-generate, spark to profile.

Step 4: settings

Lower simulation-distance to 6–8 and view-distance to 8–10. That alone cuts minecraft server lag on most worlds.

When the server keeps lagging

If MSPT stays high with nothing obvious in spark, the minecraft server lagging is a CPU problem: move to a host with a modern, high-clock Ryzen.

Good to know

01Why is my Minecraft server so laggy?
Usually too many entities (mob farms, item drops), chunk generation while players explore, or one mod or plugin using too much tick time. A slow CPU makes all of these worse. Run /spark profiler to see which.
02What does "Exception in server tick loop" mean?
The server crashed during a tick. The crash report below that line names the mod, block or entity that caused it; remove or update that mod, or delete the broken entity with a world editor.
03Will more RAM fix lag?
Only if the server is actually out of memory (frequent crashes, constant garbage collection). Otherwise lag comes from the CPU, and more RAM doesn't help.