The line A single server tick took 60.00 seconds (should be max 0.05) means the main server thread stopped finishing ticks for a full minute, and a safety thread called the watchdog killed the server because it assumed it had hung. The fix is not to raise the timeout. The fix is to find what the main thread was stuck on, and the answer is almost always printed in the thread dump just below that line: a plugin waiting on a database or web request, a chunk or structure search that never returned, a deadlock, or a machine that ran out of memory and stalled. Read the dump, name the culprit, remove or reconfigure it. Raising max-tick-time only makes the freeze longer.
This post is about that one crash. If your console shows the softer warning Can't keep up! Is the server overloaded?, that is a different, much milder problem covered in Can't keep up: is the server overloaded?. If the server dies on a particular entity or block, see the ticking entity crash fix. If it restarts, crashes and restarts again, start with crash loop recovery. Here we deal with the case where nothing crashes in the ordinary sense - the server simply stops moving, and then gets shot.
What the watchdog is and what the message means#
Minecraft runs the whole world on one thread, called the server thread. Each tick it has 50 milliseconds to do everything: move mobs, run redstone, process packets, load chunks, run every plugin's scheduled tasks. That is where the number in the message comes from: 20 ticks a second means each tick should take at most 0.05 seconds.
Next to the server thread runs a second, tiny thread whose only job is to check that the server thread is still making progress. In vanilla it is the server watchdog. Paper and its forks carry their own version of the same idea, configured in a different file. The watchdog does not measure how slow ticks are on average. It asks one question: has the current tick been running for longer than the limit? If yes, it assumes the server is deadlocked or in an endless loop, writes a crash report, and stops the process so that something can restart it.
Two separate settings control this, and people confuse them:
| Setting | File | Default |
|---|---|---|
max-tick-time | server.properties | 60000 (milliseconds) |
settings.timeout-time | spigot.yml | 60 (seconds) |
On vanilla only the first applies. On Paper, the server thread is also watched by the Spigot-derived watchdog, which reads timeout-time from spigot.yml. Both default to sixty seconds, which is why the figure in the message is almost always exactly 60.00. If you have raised one of them and still see a different number, the number in the message tells you which watchdog fired: it is the limit you configured, not the time the tick would eventually have taken.
The Paper variant prints a different, longer message. Its wording changes between versions, but it generally opens with a line saying the server has stopped responding, notes that this is probably not a Paper bug, and then prints Server thread dump followed by the stack of every thread. The vanilla variant prints the A single server tick took 60.00 seconds (should be max 0.05) line followed by Considering it to be crashed, server will forcibly shutdown. and writes a file in crash-reports/. Whichever you see, the useful part is the same: where was the server thread standing when the watchdog gave up?
Read the thread dump first#
Do not change any setting yet. Open the console log (logs/latest.log, or the previous one in logs/ if the server has already restarted) and find the dump. On Paper it starts right after the "server has stopped responding" lines. You are looking for the thread named Server thread. Everything else is context.
The top of the stack for that thread is the line where the server was standing. Read down from it until you hit a package name you recognise as a plugin rather than net.minecraft, org.bukkit or java. A typical stuck-on-database dump looks like this:
"Server thread" #34 prio=5 tid=0x... nid=0x... runnable java.lang.Thread.State: RUNNABLE at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method) at java.base/java.net.SocketInputStream.socketRead0(Native Method) at com.mysql.cj.protocol.ReadAheadInputStream.fill(...) at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(...) at com.example.economy.Storage.loadBalance(Storage.java:88) at com.example.economy.listeners.JoinListener.onJoin(JoinListener.java:41) at org.bukkit.plugin.EventExecutor.execute(...)The names above are made up, but the shape is real. The server thread is reading from a network socket, called from a plugin's join listener, which means the plugin is querying a database on the main thread and the database stopped answering. The plugin is the cause; the database is the trigger.
The patterns that show up most often in these dumps:
- `socketRead`, `SocketInputStream`, `HttpURLConnection`, `com.mysql`, `org.mariadb`, `org.postgresql`, `redis` near the top. A plugin is doing network or database work synchronously. A timeout of 30 or 60 seconds on a dead connection is all it takes.
- `Future.get`, `CompletableFuture.join`, `Unsafe.park`, `LockSupport.park` under a plugin class. The main thread is waiting for work on another thread, and that other thread may in turn be waiting for the main thread. That is a deadlock. Look at the other threads in the dump for one that is
BLOCKEDor waiting on the main thread. - `ChunkGenerator`, `StructureManager`, `findNearestMapStructure`, `locateStructure` or similar in the stack. A structure search or world generation call that never finishes. Common triggers are a cartographer villager selling an explorer map, an Eye of Ender, the
/locatecommand, or a plugin that places structures. - `RegionFile`, `ChunkIOExecutor`, `FileChannel`, `sun.nio.ch.FileDispatcher` or `ZipFile`. Disk I/O. Either the disk is stalled or a chunk file is damaged. See chunk errors and world corruption.
- A loop inside one plugin or datapack function. The same two or three lines of a plugin repeat in every dump you take. A datapack
.mcfunctionthat calls itself without a stop condition has the same effect. - No plugin at all, only `net.minecraft` frames. Large entity or hopper counts, a huge redstone clock, or a command like a very large
/fill,/cloneor WorldEdit operation. These are working, not stuck, and are just too big for one tick.
If the dump shows nothing but vanilla frames and you cannot tell what it is doing, take that as a sign to profile rather than guess. That is covered below.
What actually causes a 60-second tick#
The causes fall into five groups. Roughly in the order they turn out to be the answer on real servers:
- A plugin blocking the main thread on I/O. Databases, web APIs, Discord webhooks, update checkers, skin or UUID lookups. Anything that talks over a network should run off the main thread. Many plugins get this wrong in one code path, such as the join event, and it only bites when the remote side is slow. This is why the crash appears to be random: it follows the other service's bad minute, not yours. Plugins that use MySQL are covered in MySQL for Minecraft plugins.
- A deadlock. Two threads each waiting for the other. Usually a plugin that calls back into the main thread from an async task and then waits for the answer. A deadlock never resolves on its own, so a sixty-second wait is certain.
- A runaway search or generation task. Structure location in a world with unusual generation settings, a custom world generator, or a datapack that changes structure placement can make a search that normally takes milliseconds run for minutes.
- A machine-level stall. The process was paused rather than busy. The usual reasons are garbage collection after the heap filled up, the operating system swapping memory out to disk, a disk that stopped responding during a save, or a container hitting its memory limit. A server that is thrashing at the top of its heap can stop for tens of seconds at a time. See Java heap space OutOfMemoryError and JVM flags and Java versions.
- Honest overload that grew past the limit. A mob farm that has accumulated tens of thousands of entities, a hopper chain, or a world-wide operation started by an admin. Each tick is getting slower until one of them is not a tick but a minute.
Group four deserves a note, because the console shows nothing unusual beforehand. If the log goes quiet for a minute and the watchdog fires with the server thread inside a harmless-looking method, or the dump itself is delayed or missing, suspect the process being frozen from outside rather than the server code.
Find the cause with spark#
When the dump is ambiguous, or the crash happens only under load and you cannot catch it in the act, use spark. It is bundled with Paper on recent versions, and a separate plugin or mod on other server types. Our full walkthrough is in lag diagnosis with spark; the three commands that matter for this crash are these:
/spark tickmonitor --threshold-tick 1000/spark profiler start --timeout 600/spark profiler stoptickmonitor with a tick threshold prints a message whenever a single tick runs longer than the number of milliseconds you give it, here one second. Leave it on and you get a timestamped list of the bad ticks, which you can match against what players did. The profiler samples every thread and shows, as a call tree, how much of the time the server thread spent in each plugin and method. Start it, wait for a slow period, then stop it and open the link it prints. If one plugin owns most of the server thread's time, you have your culprit even if the server never crossed the 60-second line.
The profiler has an option to only keep ticks that exceeded a given length (--only-ticks-over), which is useful for isolating the rare freeze from thousands of normal ticks. Command options vary a little between spark versions, so run /spark profiler with no arguments to see what yours accepts.
Profiling does not catch a deadlock well, because a stuck thread is not consuming CPU; it is waiting. For a suspected deadlock the thread dump is the better evidence: take two dumps a few seconds apart and compare. If the server thread's stack is identical in both, it is stuck, not busy.
Taking a thread dump before the watchdog fires#
If the freeze is reproducible, you can look at it before the watchdog kills the server. On a server you control directly, jstack <pid> prints the stacks of the running Java process, and jcmd <pid> Thread.print does the same. Both ship with a JDK rather than a bare JRE. On a hosted server you normally cannot run them inside the container, which is another reason the automatic dump the watchdog writes is so valuable. Paper's own watchdog also has an early-warning setting that prints thread dumps while a tick is still running, well before the final timeout. It is configured in Paper's global configuration file (config/paper-global.yml on recent versions, paper.yml on old ones) under a watchdog section, with an interval and a delay. The key names have moved between releases, so check the generated file on your version rather than copying values from this page.
Fixes by cause#
Once you know the group, the fix is usually short.
A plugin blocking on I/O
First check whether the service it talks to is healthy: is the database reachable, is the host name resolving, has a remote API gone down? Fix that, and the freeze stops. Then look at the plugin's configuration for a connection or query timeout and set it to a few seconds rather than the default. Update the plugin, because blocking calls on the main thread are usually fixed in later versions. If the plugin cannot be made to run its calls asynchronously, replace it. A plugin that holds the whole server hostage on every network blip is not worth its feature list.
If the database is hosted next to the server, latency is rarely the issue; availability is. Check that the database account, password and host in the plugin's config are still valid after any move or password change.
A deadlock
Update the plugin first and check its issue tracker for the words "deadlock" or "watchdog". Remove it for a day to confirm the diagnosis. If two plugins interact (a protection plugin and a logging plugin are a classic pair), the dump will show each blocked on a lock the other holds; report it to the authors with both stacks.
A runaway structure search or generation
If the dump names structure location, find the trigger: a villager trade, an item, a command. Stop players from using it until you know more, for example by removing cartographer trades with a plugin that supports it. Check that the world's generator settings are not unusual, and that any datapack changing structures is made for your Minecraft version. When a stuck search leaves a bad chunk behind, a damaged region file can need repair or restoration from backup.
For planned heavy generation, such as pre-generating a world, do not do it in the main game loop. Use a pre-generation tool within a defined border; see world border and pregeneration.
A machine-level stall
Check memory first. If the heap in your startup flags is set close to the memory the host actually gives the process, the Java process plus its off-heap memory can pass the container limit and be killed or stall. Leave headroom. A common starting point is to set the heap to about 75 to 80 percent of the memory available, not 100 percent; for the reasoning and flag sets, see JVM flags and Java versions. Then look at disk: a save on a slow or nearly full disk can stop the server thread while it waits. Garbage-collection logging, enabled with the JVM's unified logging flag -Xlog:gc, shows pauses of several seconds if the heap is the problem.
Honest overload
Reduce what the world is asked to do. Entity cleanup, mob caps, hopper limits and view distance are covered in the Paper optimisation guide and in view and simulation distance tuning. For farm-heavy worlds see villager and mob farm lag. An admin command that touches a huge area should be broken into smaller pieces, or run from a tool designed to spread the work across ticks.
Should you change max-tick-time or timeout-time?#
Usually not. The temptation is understandable: the crash happens once a week, the server is otherwise fine, and setting max-tick-time=-1 in server.properties makes the message vanish. In vanilla, -1 disables the watchdog entirely. What you have then is a server that, when it genuinely hangs, hangs for ever, with players stuck on a frozen world until someone notices and kills the process by hand. The watchdog is the thing that turns an indefinite hang into a restart.
There are two honest reasons to change it:
- A known, bounded long operation. A world conversion, a one-off migration, or a big pre-generation can legitimately hold the main thread for minutes. Raise the limit for that session, and put it back afterwards.
- A slow disk during a heavy save on a large world. If you have confirmed that a long save is the cause and you cannot fix the disk, a limit of 120 seconds may be reasonable. Treat it as a mitigation, not a cure.
# milliseconds; 60000 is the default, -1 disables the vanilla watchdogmax-tick-time=60000settings: # seconds; 60 is the default timeout-time: 60 restart-on-crash: true restart-script: ./start.shOn Spigot-derived servers, restart-on-crash and restart-script tell the server to run a script after the watchdog stops it. That is only useful if you have such a script; on a host with a panel, the panel's own restart-on-exit behaviour does the job, and you should check how yours is set before relying on either. Editing spigot.yml and server.properties needs a full restart, not a reload. The file formats and the full list of keys are in server.properties explained.
A worked example#
A server runs Paper with about twenty plugins, including an economy plugin that stores balances in a remote MySQL database. Every few days, at no fixed hour, the console prints the vanilla message and the process stops. Nobody can connect to the world until it is started again.
The admin opens logs/latest.log after the restart and finds the dump. The Server thread is in socketRead0, called from the economy plugin's join listener. They check the database host: the provider's monitoring shows a 70-second interruption at the same minute. The cause is clear - the plugin blocks the main thread on a query when a player joins, and the database was unreachable.
They do three things. They update the economy plugin; the changelog of the newer version mentions moving balance loading off the main thread. They set the plugin's connection timeout to five seconds in its configuration. And they keep max-tick-time at the default, so a future hang still ends in a restart rather than a frozen world. A week later, the next database interruption produces a few warnings in the log and some players with a delayed balance, and the server stays up.
Note what the admin did not do. They did not add RAM, switch Java versions or lower the view distance, none of which could have mattered, because the dump pointed at a socket read. Ten minutes with the dump replaced days of guessing.
Running this on RE:NODE#
On a RE:NODE Minecraft server, the server runs Paper with the matching Java version. Most of what this post needs is on screens you already have: the Console tab shows unfiltered live output, so the thread dump is there as it is printed; the file manager opens server.properties, spigot.yml and crash-reports/ for editing and download; and the Startup tab holds the server variables. Plans start at $5 a month with 2 GB, and memory is a hard limit: at the limit the kernel stops the container and it restarts clean instead of swapping. That matters for this crash, because a Java heap set too close to the plan's memory is a way to produce the machine-level stall described above. Leave headroom between the heap and the plan's memory.
A watchdog stop ends the process, and the panel's crash detection polls every two minutes for a server that went offline or whose uptime went backwards. Restarts you asked for are not counted; three crashes in an hour raise a warning on the server page and an automatic ticket. If your server is crashing repeatedly, read the dump before the third one. You can also automate a controlled daily restart and backup on the Schedules tab, which clears slow memory growth before it turns into a long garbage-collection pause; the setup is in scheduled restarts and automatic backups. Take a backup before you edit config or remove a plugin, and keep a copy you have tested; world backup and restore covers how.
A checklist for the next time it happens#
- Do not change settings yet. Copy
logs/latest.logand the newest file incrash-reports/somewhere safe. - Find the
Server threadstack and read down to the first plugin or datapack frame. - Classify it: network or database, deadlock, structure or chunk work, disk, or only vanilla frames.
- Check the outside world: was the database, API or disk healthy at that minute?
- Update, reconfigure or remove the plugin the stack names. Change one thing at a time.
- If there is no clear stack, run
/spark tickmonitor --threshold-tick 1000and a profile during busy hours. - Leave the watchdog on. Raise it only for a known, bounded task, and revert it afterwards.
- After a plugin change, run the routine in plugin update routine for live servers: backup first, one change, watch the console.
FAQ#
What does "A single server tick took 60.00 seconds (should be max 0.05)" mean?
The main server thread spent 60 seconds on a single tick, and a watchdog thread decided the server was hung and shut it down. A healthy tick takes at most 0.05 seconds. The number 60.00 is the configured limit, max-tick-time in server.properties by default, not necessarily how long the tick would have taken.
Will I lose my world when the watchdog stops the server?
Usually not much, but you can lose recent progress. The process is stopped forcibly, so the last unsaved changes may not be written. The risk of corruption is higher if the crash happened during a save. Restore from a backup if you see chunk errors afterwards.
Is setting max-tick-time to -1 a good fix?
No. It turns off the vanilla watchdog, so the crash message stops but the underlying freeze remains, and a real hang will never recover on its own. Use it only temporarily, for a known long task.
Is this the same as "Can't keep up! Is the server overloaded?"
No. That message means ticks are slow but finishing. This one means a tick did not finish for a full minute. They can share a cause, such as a heavy plugin, but a 60-second tick almost always points at something blocking or stuck rather than ordinary load.
Why does it happen at random times?
Because the trigger is usually outside your server: a database that paused, an API that timed out, a disk that stalled, or a player action that starts a rare search. Look at what else happened at that minute.
Can a mod or plugin that is not mentioned in the dump still be the cause?
Yes. The server thread shows what it was doing when the watchdog fired, and a deadlock or a memory stall can leave it in an unrelated method. Check the other threads in the dump, the memory use and the garbage-collection log before you rule a plugin out.


