Minecraft Server TPS Dropping? Too Many Mobs & Entities (Fix)
Your Minecraft server used to run at a smooth 20 TPS, and now it stutters - blocks break with a delay, mobs teleport around, and everything feels a half-second behind. You've got plenty of RAM and the CPU isn't pegged, so what gives? Very often the answer is entities: too many animals, mobs, or dropped items grinding the server's tick to a crawl. Here's how to prove it and fix it.
/kill @e[type=cow,limit=200], clear dropped items), then cap future breeding so it doesn't come back.Why entities wreck TPS
TPS (ticks per second) is your server's heartbeat - it should sit at 20. Every single tick, the server has to update every loaded entity: each cow, chicken, villager, zombie, and every dropped item on the ground gets its AI, physics, and pathfinding recalculated.
A hundred animals is nothing. But servers accumulate entities silently: a breeding farm nobody capped, a mob grinder left running, thousands of items spilled on the floor from a full hopper system. Suddenly the server is recalculating thousands of entities 20 times a second, the tick can't finish in 50ms, and TPS falls. RAM and disk look fine - because the bottleneck is CPU time per tick, not memory.
The signature: TPS is low but RAM usage is normal, and it got gradually worse over time rather than all at once.
Step 1 - Confirm it with spark
Don't guess - measure. spark is a free, lightweight profiler that shows exactly where tick time is going. Install the spark plugin (or it may already be on your server), then in the console or in-game:
- Run
/spark tpsto see your current TPS and CPU usage. - Run
/spark profilerfor about a minute, then open the link it gives you. In the report, look at what's consuming tick time. If you see big chunks under entity ticking - or specific mobs by name - that's your answer. - On many setups you can also open the profiler's entity view to see counts per mob type per chunk. A single chunk with 900 animals in it is a flashing red sign.
This turns "the server feels laggy" into "cows are 60% of my tick," which tells you exactly what to remove.
Step 2 - Cull the overpopulation
Once you know what's overloaded, thin it out from the Console in your control panel:
/kill @e[type=minecraft:cow,limit=800]
/kill @e[type=minecraft:chicken,limit=800]
/kill @e[type=minecraft:item]
- The
limit=keeps you from wiping every animal - set it to remove the excess while leaving a healthy breeding stock. @e[type=minecraft:item]clears dropped items on the ground, which are a huge and often-overlooked source of entity lag.- Adjust the type to whatever spark flagged. On modded servers, use the mod's entity ID (for example a mod's livestock entity) rather than the vanilla name.
You should see TPS climb back toward 20 almost immediately.
Step 3 - Stop it from coming back
Culling once fixes today. To keep TPS healthy, cap the source:
- Limit animal breeding. If a mod or plugin controls spawn/breeding rates, raise its "prevent over-breeding" setting so populations self-limit instead of exploding.
- Tune entity settings. In
spigot.ymlandpaper-world-defaults.yml(orpaper.ymlon older versions), lower per-chunk mob caps and tighten entity activation range so distant entities tick less often. Small changes here have a big effect. - Fix item-spill sources. A hopper line dumping overflow onto the floor will refill the item pile endlessly - cap or void the overflow so items don't accumulate.
- Keep an eye on it. Re-run
/spark tpsnow and then. Catching a runaway farm early is a two-second fix; catching it at 5,000 entities is a rescue mission.
Not sure what's eating your TPS?
If spark's report is hard to read, or your TPS is low and it's not entities, there's usually a clear culprit in the profile - heavy redstone, a badly-behaved plugin, or slow chunk generation. On a FreaksMC server, email [email protected] with your spark link and we'll read it and tell you exactly what to change. For a broader walkthrough of every common cause, see why is my Minecraft server lagging and why chunks load slowly.
Common questions
What's a good TPS? 20 is perfect (the max). Anything consistently below ~18 is noticeable lag worth investigating.
How do I know if entities are the problem and not RAM? If TPS is low but RAM usage is normal and it got worse gradually, entities are the prime suspect. spark confirms it in a minute. If RAM is maxed out, see how much RAM your server needs instead.
Will /kill @e delete my pets or named animals? /kill @e[type=...] targets everything of that type in loaded chunks, including named ones. If you have tamed or named animals to protect, use a more specific selector or exclude by name/tag before running a broad cull.
Do dropped items really cause lag? Yes - every dropped item is a ticking entity. Thousands of them on the ground from farms or full storage are a common, sneaky cause of low TPS. Clearing @e[type=item] often gives an instant boost.
Want a server that just runs fast?
FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.
See plans from $3/mo