NexthostingLogs

Logs / Error guide / Minecraft

Minecraft: “Can't keep up! Is the server overloaded?”

What the message means

A Minecraft server runs 20 ticks per second, so one tick every 50 milliseconds. If it can't manage that for a longer time, it writes this warning with the time and the number of ticks it is behind. For players, this feels like lag: blocks reappear, mobs jump, redstone gets slow.

What it looks like in the log

[18:20:03] [Server thread/INFO]: Starting minecraft server version 1.21.4
[18:20:15] [Server thread/INFO]: Done (11.902s)! For help, type "help"
[18:41:27] [Server thread/INFO]: Mia_Baut joined the game
[18:52:09] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2541ms or 50 ticks behind
[18:55:44] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5307ms or 106 ticks behind
[18:58:12] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 3018ms or 60 ticks behind

Excerpt from an example log, marked the way the analysis marks it.

Common causes

  • Too many entities in one place: animal farms, item piles, villager halls.
  • Large redstone circuits, hopper chains or clock circuits that work every tick.
  • Chunk generation when several players explore new areas at the same time.
  • A plugin or mod that does a lot of computing on every tick.
  • Too little CPU power or too little RAM, so Java has to clean up constantly (garbage collection).
  • Occasional warnings right after startup or after a save are normal and not a problem.

How to fix it

  1. Look at the number: a few hundred milliseconds now and then are harmless. Several seconds, or warnings every minute, need a fix.
  2. Use the plugin or mod spark (/spark profiler) to measure which parts of the server use the time – entities, chunks or a specific plugin.
  3. Limit entities: make farms smaller, have items removed automatically, and on Paper use the entity limits in the configuration.
  4. Lower simulation-distance in server.properties. On Paper, this often helps more than any other setting.
  5. Pre-generate the world (for example with Chunky) instead of letting it be generated while people play.
  6. If you use Vanilla, switch to Paper or Purpur – they run much more smoothly on the same hardware.