Offer Why us? How it works?
Guide

Minecraft max-tick-time: what it does and how to change it

Your Minecraft server shut itself down and the log says “A single server tick took 60.00 seconds”? That's the watchdog, a guard that stops the server when a single tick takes too long. Here's how max-tick-time works, when to raise it or disable it with -1, why Paper handles it differently and how to find the real cause of the freeze.

Updated: 8 min read
Table of contents
  1. What is max-tick-time?
  2. What does the "A single server tick took" crash look like?
  3. How do I change max-tick-time on a Spot.gg server?
  4. Modpack servers: the field is locked
  5. When should I raise max-tick-time, and when should I use -1?
  6. max-tick-time on Paper, Spigot and Purpur
  7. How do I find out why the server freezes?
  8. FAQ
  9. What is the default max-tick-time?
  10. Is setting max-tick-time to -1 safe?
  11. Will max-tick-time reduce lag?
  12. Why doesn't changing max-tick-time work on Paper?
  13. Why can't I change max-tick-time on my server?

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-reports folder, named like crash-YYYY-MM-DD_HH.MM.SS-server.txt. Its description starts with Watching 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.log with 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:

  1. Open your server and go to the "Configuration" tab.
  2. Choose the "server.properties" tab. The quickest way is to type tick into the option search.
  3. In the max-tick-time field, pick one of the values: -1 - Disables the option, 10000, 20000, 30000 or 60000 (stop after 10, 20, 30 or 60 seconds).
  4. Click "Save changes" at the bottom of the page.
  5. 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:

  1. Open the "Files" tab and the spigot.yml file in the server's main folder.
  2. In the settings section, find timeout-time: 60 and change it, e.g. to timeout-time: 120.
  3. 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:

  1. The crash report. In the "Files" tab, open the newest file in crash-reports and look for the Server thread section. A mod or plugin name in its first lines is usually the culprit.
  2. 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.
  3. The spark profiler. The spark add-on shows what takes up the most time in a tick. spark tps shows TPS and tick duration, while spark profiler start and, a few minutes later, spark profiler stop produce a link to a report.
  4. 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".

Other guides

How to Fix Minecraft Server Lag: TPS, Ping, FPS and What Actually Helps How to find and fix Minecraft server lag: TPS vs ping vs FPS, spark, view and simulation distance, pre-generation, Paper and Purpur, performance mods and why more RAM rarely helps. 12 min read How to Use spark on a Minecraft Server: Profiler, TPS and Health Report How to use the spark profiler on a Minecraft server: spark tps, spark health, spark profiler, reading the report and what replaced Paper's Timings. 10 min read Minecraft Server Logs and Crash Reports: Find and Read Them Where to find latest.log, old .log.gz logs and crash-reports on a Minecraft server, how to read a stack trace, and how to share logs with mclo.gs or send them to support. 11 min read How to Make a Cobblemon Server (Fabric or NeoForge) How to make a Cobblemon server: official modpack or COBBLEVERSE, Fabric vs NeoForge, Minecraft version, RAM, adding Cobblemon to your own server and letting friends join. 7 min read DawnCraft Modpack Guide: Classes, Best Class, Bosses and Servers DawnCraft – Echoes of Legends is a Soulslike RPG modpack for Forge 1.18.2. All 8 classes with real stats, the best class, the Guild Master quest, 12 eyes, bosses and RAM. 12 min read Minecraft Server Backups vs. Autosave Explained How Minecraft autosave (save-all, every 5 minutes) differs from a server backup, how to back up a Minecraft server, how long backups are kept and how to restore a world. 8 min read