FreeMCHost logoFreeMCHost
All articles
Performance

Fix "Can't keep up! Is the server overloaded?" (Server Lag)

What the warning means, how to find the cause with spark, and the settings that lower the load on a Minecraft server.

December 5, 20266 min read

What the message means

Can't keep up! Is the server overloaded? Running 2500ms or 50 ticks behind means the server could not finish its 20 ticks per second. One isolated line after startup is harmless. A line every few minutes is a real problem.

Find the cause first

Recent Paper builds include spark. Otherwise install the spark plugin or mod. Run:

/spark tps
/spark profiler start --timeout 120

The report shows where tick time goes: a plugin, entities, chunk generation or garbage collection.

The usual culprits

  • Players exploring new terrain. Pre-generate the map with Chunky.
  • Too much distance. Set view-distance=7 and simulation-distance=4 in server.properties.
  • Entity farms. Large mob or item farms cost a lot. Limit them.
  • A heavy plugin. The profiler names it. Update or replace it.
  • Memory pressure. Long pauses point to garbage collection. Use sensible startup flags.

What does not help

Giving far more memory than needed can make pauses longer. Plugins that delete everything on the ground or "boost RAM" treat symptoms, not causes.

Related