Guide · Performance

How to reduce entity lag

Entities, meaning mobs, animals, dropped items, minecarts and item frames, are the most common cause of tick lag on survival servers. A single overgrown farm can cost more than every player combined.

Find where they are

A spark profile shows how much tick time goes to entities. To find where, Paper's paper entity list command lists entity counts by type and chunk, so you can jump straight to the worst area. In a hurry, kill @e[type=item] removes all dropped items, but use it with care.

The usual culprits

  • Animal pens with hundreds of cows or chickens
  • Villager trading halls and breeders, as villager AI is expensive
  • Mob farms with poor kill systems so mobs build up
  • Item piles from farms whose collection is full or broken
  • Minecart and boat stacks, and huge item frame walls

Settings that help

In spigot.yml, entity-activation-range makes distant mobs tick less often, and merge-radius merges nearby items and experience orbs. In Paper's world config, lowering max-entity-collisions makes crowded pens far cheaper, and per-chunk save limits stop items or projectiles from piling up indefinitely. bukkit.yml spawn-limits lowers how many mobs naturally spawn per player.

Rules for players

Settings only go so far. Publish simple, fair rules, such as a cap on animals per pen, a cap on villagers per hall, and farms that must turn off when not in use. Plugins can enforce per-chunk limits, which is kinder than a clear-lag plugin that deletes items and mobs on a timer.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Do clear-lag plugins fix entity lag?
They hide symptoms by deleting items and mobs on a timer, which frustrates players. Fixing the farm or limiting entities per chunk is a better long-term fix.
Why are villagers so laggy?
Each villager runs pathfinding, schedules and workstation searches. Large halls with many villagers, especially if they can move around, are expensive. Keeping them in individual cells helps.
How many entities is too many?
There is no single number, but a few hundred in one chunk area is usually a problem. Watch MSPT rather than raw counts.