What is max-tick-time?
max-tick-time is a server.properties option that sets how many milliseconds a single server tick may take before the watchdog considers the server frozen and shuts it down. The default is 60000, or 60 seconds. A value of -1 turns the watchdog off completely.
Some background:
- A tick is one step of the world simulation. The server runs 20 ticks per second, so one tick should take 50 ms (0.05 s) at most. Mobs move, crops grow, redstone fires and terrain generates within those ticks.
- The watchdog is a separate guard thread. It checks whether the server's main thread is stuck. When one tick runs longer than
max-tick-time, the watchdog writes a crash report and closes the server. - Lag is something else. A server running at 10 TPS instead of 20 lags, but the watchdog leaves it alone. It only steps in when a single tick hangs for a full minute, meaning the server has practically frozen.
| Value | What happens |
|---|---|
60000 (default) |
The server is stopped when one tick takes longer than 60 s |
120000, 180000 |
More time for heavy work, such as loading a large modpack |
10000–30000 |
Faster stop, with a higher risk of false alarms while terrain generates |
-1 |
Watchdog off: the server is never stopped for this reason |
What does the "A single server tick took" crash look like?
When the watchdog stops a Vanilla, Forge, NeoForge or Fabric server, the console shows A single server tick took 60.00 seconds (should be max 0.05) followed by Considering it to be crashed, server will forcibly shutdown. The process then exits with code 1.
What the stop leaves behind:
- A crash report in the
crash-reportsfolder, named likecrash-YYYY-MM-DD_HH.MM.SS-server.txt. Its description starts withWatching Server. - A thread dump, the list of what every thread was doing at that moment. The key part is
Server thread: package names in its first lines (e.g.com.somemod…) usually point to the mod or plugin that blocked the server. - The log
logs/latest.logwith the last entries before the crash.
A similar but milder message is Can't keep up! Is the server overloaded? Running 2000ms or 40 ticks behind. That's only a warning that the server is falling behind, not a crash, and max-tick-time won't help with it.
How do I change max-tick-time on a Spot.gg server?
In the panel, go to "Configuration" → "server.properties", pick a value for max-tick-time in the "Other" section and click "Save changes". The change takes effect after a server restart.
Step by step:
- Open your server and go to the "Configuration" tab.
- Choose the "server.properties" tab. The quickest way is to type
tickinto the option search. - In the
max-tick-timefield, pick one of the values:-1 - Disables the option,10000,20000,30000or60000(stop after 10, 20, 30 or 60 seconds). - Click "Save changes" at the bottom of the page.
- Restart the server with the "Restart now" button under the save message.
Need a different value, such as 120000? Open the "Files" tab, click server.properties in the server's main folder, change the line to max-tick-time=120000, save the file and restart the server. Edit it while the server is stopped or restart right after, because a running server may overwrite the file. More about the file itself in our server.properties guide.
Modpack servers: the field is locked
On a server running a modpack installed from the Spot.gg catalog, the max-tick-time field is marked "Locked" with the hint "Set automatically by Spot.gg". We set max-tick-time=-1 every time such a server starts, because with hundreds of mods the first world load or generating new chunks can take longer than 60 seconds, and the watchdog would shut down a perfectly healthy server. There's nothing for you to change.
On a server with mods you uploaded yourself (e.g. Forge, NeoForge or Fabric without a ready-made pack), the value isn't forced, so you set it as described above.
When should I raise max-tick-time, and when should I use -1?
Raise max-tick-time when a heavily modded server stops during startup, terrain generation or loading of large structures, and then runs fine after a restart. That's a typical false alarm: the server didn't hang, it was busy with one very heavy operation.
| Situation | What to do |
|---|---|
| Large modpack, crash on first start or while exploring new terrain | -1 or 120000–180000 |
| Crash only while the world generates | Raise the limit and pre-generate the world, e.g. with Chunky |
| Vanilla server or one with a few plugins stops during play | Don't disable it, look for the cause in the crash report |
| The crash always repeats in the same place or at the same time | Look for the cause: more likely a broken mod, a redstone loop or too many entities |
Why -1 isn't always a good idea: during a real hang (e.g. an infinite loop in a mod), a server with the watchdog disabled won't stop on its own. Players get disconnected or frozen, and no thread dump is written to point at the culprit. On a server without mods, keep the default 60000.
Don't lower the limit without a reason. Values of 10000–30000 won't make the server faster, they only raise the risk that the watchdog kills it while the world saves or terrain generates.
max-tick-time on Paper, Spigot and Purpur
On Paper, Spigot and Purpur, max-tick-time does nothing: these engines turn off the vanilla watchdog and use their own, set in spigot.yml with settings.timeout-time (in seconds, default 60). The stop message is different too: The server has stopped responding! This is (probably) not a Paper bug. (or "Spigot bug").
How to change the limit on Paper:
- Open the "Files" tab and the
spigot.ymlfile in the server's main folder. - In the
settingssection, findtimeout-time: 60and change it, e.g. totimeout-time: 120. - Save the file and restart the server.
Paper also has an early warning: when the server hasn't responded for 10 seconds, thread dumps start appearing in the console (every 5 seconds) while the server is still running. This is controlled by early-warning-delay (default 10000 ms) and early-warning-every (default 5000 ms) in the watchdog section of config/paper-global.yml. Those dumps are the best hint about which plugin is blocking the server, before it gets stopped.
On engines that combine mods and plugins (Mohist, Arclight, Magma), check both settings: max-tick-time in server.properties and timeout-time in spigot.yml.
How do I find out why the server freezes?
Raising the limit treats the symptom; the thread dump or a profiler shows the cause. If your server stops during play, check these in order:
- The crash report. In the "Files" tab, open the newest file in
crash-reportsand look for theServer threadsection. A mod or plugin name in its first lines is usually the culprit. - The error window in the panel. When the bug icon in the server panel turns red, click it. "Detected errors" can show, among others, "Performance issues" or "Server crashed", and "Ask the assistant" starts the AI assistant, which reads the server's logs for you.
- The spark profiler. The spark add-on shows what takes up the most time in a tick.
spark tpsshows TPS and tick duration, whilespark profiler startand, a few minutes later,spark profiler stopproduce a link to a report. - Common causes. Many players generating new terrain at once, high view and simulation distance, thousands of mobs or dropped items, huge redstone farms, a corrupted chunk or an outdated mod. With large packs, too little RAM can also be the cause: when memory runs short, Java spends a long time on garbage collection and ticks get longer. See how to allocate more RAM to Minecraft.
Mods that take load off the server are listed in best Minecraft performance mods, and tips for modpacks are in how to make a modded Minecraft server.
FAQ
What is the default max-tick-time?
60000 milliseconds, or 60 seconds. If a single server tick takes longer, the watchdog considers the server frozen and stops it.
Is setting max-tick-time to -1 safe?
On a server with a large modpack, yes. It's a common and recommended setting, and Spot.gg sets it automatically for catalog modpacks. On a server without mods, keep 60000, because during a real hang the server won't stop on its own or leave a report with the cause.
Will max-tick-time reduce lag?
No. It's only the limit after which the watchdog stops a frozen server. To reduce lag, lower view and simulation distance, limit entities and remove heavy add-ons.
Why doesn't changing max-tick-time work on Paper?
Paper, Spigot and Purpur don't use the vanilla watchdog. Change the limit in spigot.yml with settings.timeout-time (in seconds).
Why can't I change max-tick-time on my server?
On a server with a modpack from the Spot.gg catalog, the field is locked because we set -1 on every start, the value large packs need. On other Minecraft Java servers, you can change it in "Configuration" → "server.properties".