Minecraft Server Entity Lag: Causes and Fixes

A cozy Minecraft village build with a windmill and stone paths

Entity count is consistently one of the biggest levers on server performance, every mob, item drop, minecart, and armor stand adds ongoing per-tick processing, and it is very easy for that number to grow far larger than anyone realizes until performance visibly suffers.

Where excess entities come from

  • Mob farms, especially unoptimized ones that let mobs accumulate rather than killing or despawning them efficiently.
  • Item drop pileups, particularly from farms with no hopper collection or item-clearing in place.
  • Uncontrolled villager breeding, a popular but notorious source of runaway entity counts if breeding is never capped.
  • Minecart and boat storage, players occasionally leave dozens of unused ones scattered around.

Checking your actual entity count

Spark's profiler breaks down time spent per entity type directly, showing you not just how many entities exist but which specific type is consuming the most tick time, which is more useful than a raw count alone.

Fix 1: tune entity-activation-range

Paper's paper-world-defaults.yml lets you reduce how far away an entity still receives full, expensive AI processing before switching to a cheaper reduced tick. Reasonable starting points are around 24 blocks for monsters, 16 for animals, and 8 for miscellaneous entities, tightening these further if lag persists in entity-heavy areas.

Fix 2: cap mob farm output

Most farm designs can be adjusted to kill or collect mobs faster than they can accumulate, rather than letting dozens sit alive waiting to be processed. If a farm is a known lag source, reducing its spawn rate or increasing its kill rate directly addresses the cause rather than working around it.

Fix 3: clear abandoned item drops

Plugins built for exactly this (periodic, warned item clearing) prevent long-forgotten dropped items from silently accumulating into a real performance cost over time.

Fix 4: cap villager breeding

Enclosing breeding areas with a hard population cap, or periodically pruning excess villagers, keeps a popular but easily-runaway source of entities under control.

Confirming the fix worked

Check TPS or MSPT before and after, entity-related fixes tend to show a clear, immediate improvement since the reduction in processing is direct and measurable.

Getting ahead of it

A command generator can help set up entity-clearing commands correctly if you want to build your own scheduled cleanup rather than relying on a plugin. Tick Hosting's plans give you the headroom to run entity-heavy farms responsibly, starting with a free tier, from Tick Hosting's plans page.