Symptoms: Server overloaded, too many entities, entity tick took too long, Can't keep up
Possible Causes
- Uncontrolled mob farms are producing far too many entities
- Dropped items pile up on the ground and are never cleared
- Villager breeding mechanics are not capped
- Entity limits have never been configured
Step-by-Step Fix
Step 1
Check the current entity count
/spark tpsStep 2
Lower the spawn limits in bukkit.yml
spawn-limits:
monsters: 50
animals: 10
water-animals: 5
ambient: 1Step 3
Install the ClearLagg plugin and set up automatic cleanup
/lagg clearStep 4
Lower the entity-activation-range values in spigot.yml
entity-activation-range:
animals: 16
monsters: 24
misc: 8Step 5
In an emergency, clear every entity
/minecraft:kill @e[type=!player]