Mojira Archive
MC-100590

High-density mobs cause high CPU usage

When mobs are packed densely (as in many popular farm designs), server CPU usage is absurdly high.

Repro steps:

  1. Start a local default-parameter flat world (I used seed 0 and was in Creative with no structures)
  2. Swap to desktop, use Task Manager to note idle CPU usage (for me this was 40% on one thread of one core)
  3. Make a 1x2x1 volume (I used dirt)
  4. Use cow spawners to place 16 cows in the volume
  5. Swap back to Task Manager, note problematically higher idle CPU usage (This was ~65%)
  6. Drop in another 48 cows
  7. Note much higher CPU usage (I also noted the load bounces somewhat between cores under this load)

On a map that was running fine on Realms before the 1.9 update, I now see 10-15 game ticks per second. Emptying the high-density cow and chicken farms lets it get back up to 20 TPS.

I tried to carefully repro this, and it's not exactly consistent. I used a splash potion to empty a second cow silo and then refilled it, and the CPU usage wasn't as high as before. This definitely repros with a full minute's worth of cow spawners in the silo though on Realms, and 1.8 handled it alright. I also could get tick stoppage with only 16 cows and a very modest amount of Redstone in the original repro Realm.

Please note that I am not saying dense farms shouldn't cost CPU; I'm saying that the cost has been multiplied immensely by v1.9.

Awaiting Response

Jon Kunkee

2016-04-05, 09:00 AM

2016-10-25, 08:59 PM

2016-10-25, 08:59 PM

0

1

Unconfirmed

Minecraft 1.9.1, Minecraft 1.9.2

-