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.