Can't keep up! Is the server overloaded? What to do
What the Can't keep up warning means in the code, when it fires (2000 ms behind on vanilla), why Paper 1.21.9 and newer do not print it, and what to do.
Quick answer On vanilla the server missed its tick schedule by more than two seconds (2.5 on Paper 1.21.8 and older), gave up on the ticks it lost, and printed this line. Treat it as a smoke alarm for lag. One line right after startup is usually a one-off stall. A line that keeps repeating, every 15 seconds or slower, means ticks are taking longer than 50 ms. Run
/spark tps: if the median tick time is high, profile it with spark, and if only the maximum is high, you are chasing spikes.
What the log line says
[Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5000ms or 100 ticks behind
Both numbers are the same measurement. The tick count is the milliseconds divided by the length of one tick, so 5000 ms at 50 ms per tick is 100 ticks [2]. The format string in the source is Running {}ms or {} ticks behind [2].
The server tries to start a tick every 50 ms. The Minecraft Wiki’s tick loop list starts with “Reset next tick time if lagging 2s behind expected tick time” [1]. In the code, that step is where the warning is printed. Here is what the vanilla loop does, read from the lines that Paper’s 26.3 patch removes [2]:
- The warning needs the server to be behind by more than 1 second plus 20 ticks. At 50 ms per tick that is 2000 ms.
- It also needs at least 10 seconds plus 100 ticks of scheduled time since the last warning. That is 15 seconds at 50 ms per tick.
- Until that 15 second window passes, the server keeps falling further behind without saying anything. So under steady overload the number in the message is whatever debt piled up over the window, usually well above 2000 ms.
- After warning, the server moves its schedule forward by the whole gap. It does not run the missed ticks to catch up. They are gone.
The 2000 and 15,000 figures are my arithmetic from those constants, not numbers written anywhere in the source. They hold for vanilla at the default 20 TPS and change if someone altered the tick rate. Paper 1.21.8 and older also change the first constant from 1 second to 1.5 seconds [4], so there the threshold is 1.5 s + 20 ticks, or 2500 ms, and the 15 second interval is unchanged.
Dropped ticks have a visible effect. The Minecraft Wiki notes that the vast majority of actions are timed by tick count, not real time, so on a slower machine things take longer [1]. A server that skips ticks runs the world slower than the clock on your wall.
One message, or many?
Count them before you change anything. In the console or your logs/latest.log:
grep "Can't keep up" logs/latest.log
Then match what you see to this table. The causes in the third column are my reading of the code above, plus the sources noted. They are the usual suspects, not a ranking.
| What the log shows | What it usually means | Next step |
|---|---|---|
| One line, large number, shortly after startup, never again | A single stall over 2 seconds, for example heavy world loading or generation at startup (my guess, not sourced) | Wait it out. Nothing to fix unless it repeats |
| A line every 15 seconds or slower, numbers similar each time | The server cannot finish ticks in 50 ms and is falling behind steadily | Run /spark tps, then profile |
| Irregular lines, long gaps between, TPS looks fine in between | Spikes: a save, a garbage collection pause, a big chunk load, one heavy event | /spark tickmonitor and /spark gcmonitor |
| Line appears when a player does one specific thing (elytra into fresh terrain, a TNT cannon, a mob farm switch) | That action produces a burst of work the server cannot absorb in time | Reproduce it with spark running |
Because the warning only fires past 2000 ms and at most about every 15 seconds, its absence means little. Short dips never reach it: by my arithmetic, a stretch at 10 TPS (100 ms ticks) falls 50 ms further behind every tick, so it has to last about 4 seconds before the server is 2 seconds behind. A server that dips for a few seconds at a time, with players complaining, can log nothing. Do not use this line as your lag meter.
Measure first, with spark
You want to know whether every tick is slow or a few are. The TPS vs MSPT post explains how to read /spark tps output, and the spark profiler post walks through reading a profile. The short decision from those two:
- Median tick time near or over 50 ms (spark reports the median and 95th percentile of tick times [10]): the server thread is saturated all the time. Start a profile (
/spark profiler start), let it run through the laggy period, and read the call tree for what dominates. - Median fine, maximum or 95th percentile high: spikes. spark documents
/spark tickmonitor --threshold-tick <milliseconds>to report only ticks longer than the number you give it, and/spark gcmonitorto toggle garbage collection reporting [8]. If the tick monitor alerts line up with GC reports, the pause is memory management, not game logic. - A profile that only needs the bad ticks:
/spark profiler start --only-ticks-over <milliseconds>records only ticks longer than that duration [8].
Why current Paper may never print it
This one catches people. I read the Paper source as of 2026-11-17, so treat it as a snapshot:
| Paper line (final build I read) | What its tick-loop patch does with the message |
|---|---|
| 1.21.4, build 232 | Still prints it, behind a getWarnOnOverload() check [9] |
| 1.21.8, build 60 | Same: still prints it, behind a getWarnOnOverload() check [4] |
| 1.21.11, build 132 | The vanilla block is replaced by Paper’s own catch-up logic [5] |
| 26.3, build 253 (latest stable when I looked) | Same replacement. The vanilla message is among the removed lines and I found no other place that prints it [2][3] |
I also diffed the latest build of 1.21.5 to 1.21.7 (message kept) and 1.21.9, 1.21.10 and 26.2 (block removed) the same way, from the Paper downloads API commit for each build. I read source patches. I did not run a 26.3 Paper server and look at a console. The “no other place” search covered the 26.3 repository checkout only, not the older lines. Paper’s docs for bukkit.yml still list settings.warn-on-overload, described as allowing you to disable the “Can’t keep up!” message [6]. In the 26.3 source, the getter for that setting still exists in CraftServer.java, but I found no caller of it anywhere in the repository. The docs and the code disagree; I would trust the code.
In the vanilla block, the warning branch is the only place the schedule is moved forward past the missed ticks, so vanilla catches up without a limit until it warns and then drops what it lost. Paper’s patch instead caps catch-up per tick, and silently drops anything beyond the cap, which is also why there is nothing left to report (my reading of the patch [2][5]). The global config key misc.catchup-ticks sets the maximum number of ticks the server can speed up after a lag spike, defaulting to 5, and a value of 1 or lower disables catch-up [7].
So if you are on a current Paper and your players report lag, /spark tps is the check, not the log. On vanilla, and on Paper 1.21.8 or older, the message is still printed. I verified the vanilla loop only. Fabric, Forge, Purpur and Folia I did not read, and I will not guess what they print.
What to change, in order of effort
- Lower simulation distance. It is the usual first lever because it cuts how much of the world gets ticked, and the view distance vs simulation distance post shows the effect. Drop it by 2 and measure again.
- Pregenerate the world. A burst of “Can’t keep up” while explorers push into new terrain is chunk generation competing with ticks. The Chunky post covers it.
- Cap what spawns. Paper’s
bukkit.ymldocumentsspawn-limits, with monsters at 70 by default [6]. The Minecraft Wiki lists large mob counts and their AI as a common cause of server-side lag [1], so lowering it trades fewer mobs for less of that work. It is a blunt tool, so change one number at a time. - Deal with the heavy farm or plugin the profile named. That is usually where the big win is. Guessing at settings before you profile means you can fix the wrong thing for a week.
- CPU speed, not RAM. A tick runs on one thread. More RAM does not make that thread faster. That is reasoning, not a sourced claim, and the clock speed post covers the single-thread side.
A worked example
You see this, three lines in a row:
[21:04:12] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 9050ms or 181 ticks behind
[21:04:36] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 9100ms or 182 ticks behind
[21:05:00] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 8950ms or 179 ticks behind
This is an invented example for vanilla or Paper 1.21.8 and older, not a log from a real server, and the arithmetic below is mine, built from the constants above. It assumes every tick takes about the same time.
Between warnings the schedule advances 300 ticks (15 seconds of scheduled time). The wall clock advanced 24 seconds, so the average tick took about 24,000 / 300 = 80 ms. Each tick ran 30 ms over, and 300 x 30 ms is 9000 ms, which is the debt in the message. The server is running at about 12.5 TPS (1000 / 80) and the world is running at about 62% of normal speed (50 / 80).
So the log alone gave you an estimate: ticks are averaging about 80 ms, not one big stall. A single stall would show one line, not a steady rhythm. Now run /spark tps to confirm the median, then profile.
How you know it worked
Wait through a stretch that used to log the warning, then run /spark tps again. The median tick time should sit well under 50 ms, and grep "Can't keep up" logs/latest.log should show no new lines after your change. On Paper 1.21.9 and newer there will not be any lines either way, so judge by /spark tps: the 5 minute TPS should hold at 20 and the median should stay under 50 ms.
When it still happens
- It happens only on startup of a new world. My guess is world generation at startup is the load. Waiting costs nothing, and pregenerating is the cheap way to test the guess.
- It happens only with a specific plugin or mod loaded. Profile with spark with and without it. The profile names the culprit, the console log does not.
Questions people ask
Is Can't keep up! Is the server overloaded? an error or a crash?
Neither. In the server source it is a logger warning, not an exception [2]. The server logs it, drops the ticks it fell behind, and keeps running. It is a symptom of lag, not a crash.
How many milliseconds behind before the message appears?
At the default 20 TPS, the vanilla loop (the lines Paper's 26.3 patch removes) warns once the server is more than 2000 ms behind schedule, and not more than roughly once every 15 seconds [2]. That is my arithmetic from the constants in the source. Paper 1.21.8 and older raise the threshold constant from 1 to 1.5 seconds, so there it is 2500 ms [4]. A changed tick rate changes both.
I am on Paper and never see this message even though the server lags. Why?
Paper 1.21.9 and newer replace the vanilla tick-loop block that printed it, and in the 26.3 source I found no other place that prints it [2][5]. Lag without the message is expected on current Paper. Use /spark tps to check [8].
Can I just turn the warning off?
On Paper 1.21.8 and older, bukkit.yml has settings.warn-on-overload [4][6]. It hides the line. The server is exactly as slow as before, and you lose the one hint that something is wrong.
Sources
- Tick (Minecraft Wiki)
- PaperMC/Paper at build 253 (26.3): MinecraftServer.java.patch, vanilla loop shown as removed lines
- Paper downloads API: latest 26.3 build (253)
- PaperMC/Paper at 1.21.8 build 60 (final 1.21.8): MinecraftServer.java.patch
- PaperMC/Paper at 1.21.11 build 132 (final 1.21.11): MinecraftServer.java.patch
- Paper docs: bukkit.yml configuration
- Paper docs: global configuration
- spark documentation: command usage
- PaperMC/Paper at 1.21.4 build 232 (final 1.21.4): MinecraftServer.java.patch
- spark documentation: TPS and MSPT guide