OutOfMemoryError, OOM kill or watchdog: which crash is it?
Three things take a Minecraft server down: a Java heap error, the host killing the container, and the watchdog. How to tell them apart and fix each.
Quick answer Look at the last lines before the server died.
java.lang.OutOfMemoryError: Java heap spacemeans the Java heap filled up [1]. A panel line readingOut of memory: truemeans the container was killed from outside, commonly because-Xmxis too close to the plan’s limit [2][9][10]. A watchdog stop means the main thread stopped ticking: vanilla saysA single server tick took 60.00 seconds[6], and Paper saysThe server has stopped responding![8]. On Paper,timeout-timeinspigot.ymlgoverns the kill, and the vanilla watchdog that readsmax-tick-timeis never started [7][8].
The three crashes at a glance
| What happened | What you see | Who killed it | What to change |
|---|---|---|---|
| Java heap full | java.lang.OutOfMemoryError with detail Java heap space [1] |
The JVM itself | Raise -Xmx if the container has room, or find what is eating memory |
| Container killed for memory | Panel prints Out of memory: true [9][10]; the kernel log shows a kill (command below) [2] |
The operating system | Lower -Xmx so it sits 1 to 2 GB below the limit [2] |
| Watchdog | Vanilla: A single server tick took 60.00 seconds [6]. Paper: The server has stopped responding! [8] |
The server’s own watchdog thread | Find what blocked the main thread. Do not just raise the timeout |
The container kill is the one that catches people on panels, because the Java process never gets a chance to log anything.
Java heap OutOfMemoryError
Oracle describes this case as an OutOfMemoryError whose detail message is Java heap space: an object could not be allocated in the heap [1]. Oracle also notes that this does not necessarily mean a leak, since the cause can be as simple as a heap size that is too small for the application [1]. Other detail messages exist, including GC Overhead limit exceeded and Metaspace [1], and they point at different problems.
Fixes, in the order I would try them:
- If the container has spare memory, raise
-Xmx, and keep-Xmsequal to it. How much RAM a server needs covers how to pick the number. - If it happens again at a bigger size, look for memory growth rather than adding more. spark can summarize the heap (
/spark heapsummary) and profile allocations (/spark profiler start --alloc) [11]. - If it started after you added or updated something, suspect that first and remove it to test.
The container kill: the crash that leaves no Java error
If the host kills the process, Java does not get to write a final message. The log just stops. On a panel you will see lines like these in the console (example; your panel puts its own daemon prefix in front of each line). They are in the crash handler of upstream Pterodactyl Wings [9], and the Calagopus Wings code prints the same three lines [10]:
---------- Detected server process in a crashed state! ----------
Exit code: <number>
Out of memory: true
The exit code varies, so I am not quoting one. The line that matters is Out of memory. Wings fills it in from Docker’s record of whether the container was killed by the OOM killer [12].
On a machine you control, ask the kernel directly. Paper’s docs say to run dmesg -T | grep -i killed from a shell, and that a common cause is a panel memory limit set too close to -Xmx [2]. The reason is that Java needs memory on top of the heap. Paper’s flags page says to reduce -Xms and -Xmx by about 1000 to 1500 MB below the amount your host gives you [3], and the troubleshooting page suggests 1 to 2 GB as a first rule of thumb [2].
Take a 6144 MB limit with -Xmx6G. The heap alone is the whole limit, and Java still needs memory beyond the heap [3], so nothing is left for it. Lowering -Xmx fixes that. Raising it makes the kill more likely.
The watchdog: nothing ran out, something stopped ticking
The watchdog is a thread that watches the main server thread. If the main thread has not completed a tick within a time limit, the watchdog stops the server. Which setting controls the limit depends on your server software.
Vanilla (and Fabric, which I did not check separately). The Minecraft Wiki lists max-tick-time in server.properties, default 60000 milliseconds. When a tick exceeds it, the watchdog stops the server with the message “A single server tick took 60.00 seconds (should be max 0.05); Considering it to be crashed, server will forcibly shutdown.” and exits with code 1. Setting max-tick-time=-1 disables the watchdog entirely [6].
Paper. Here the answer is timeout-time in spigot.yml, default 60 seconds [4]. I checked this in Paper’s source on its main branch as of 2026-11-15: the patch to DedicatedServer wraps the vanilla watchdog start in if (false && this.getMaxTickLength() > 0L) { // Spigot - disable, and starts Paper’s own watchdog thread with the spigot.yml timeout [7]. So on Paper, editing max-tick-time in server.properties changes nothing about the kill. I did not read older Paper builds, so if you run a very old one, treat this as unconfirmed.
Two Paper details from the same source, both worth knowing before you edit anything [8]:
- A
timeout-timeof 0 or less does not disable the watchdog. It is replaced with 300 seconds. settings.restart-on-crash(defaulttrue) runs yourrestart-script(default./start.sh) after the watchdog stops the server [4]. Paper’s docs add that this setting does not restart a server that was killed externally, such as by the OS [4], so it does nothing for the container kill above. On a panel, check what that script does, because the panel may manage restarts itself.
What Paper prints before it kills the server
Paper prints early warnings while the server is stuck. watchdog.early-warning-delay (default 10000 ms) sets when it starts printing thread dumps, and early-warning-every (default 5000 ms) sets the interval [5]. Paper’s docs show what that looks like [2]:
[02:04:00] [Paper Watchdog Thread/ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - 1.21.3-66-afb5b13 (MC: 1.21.3) ---
[02:04:00] [Paper Watchdog Thread/ERROR]: The server has not responded for 10 seconds! Creating thread dump
That is a warning about severe lag, not the crash itself [2]. The kill happens when the stall reaches timeout-time. Then the source prints “The server has stopped responding! This is (probably) not a Paper bug.” and a full thread dump, and shuts the server down [8].
To find the cause, read the first lines of the stack under Server thread dump. Paper’s docs say they show where the main thread was stuck, and often point at the root cause [2]. If it names a plugin, that plugin is doing slow work on the main thread. The watchdog message itself lists the usual suspects: HTTP or MySQL calls in a plugin, or a world save or edit that is bigger than the server can handle at once [8]. A spark report taken during a lag spike is the next step if the stack is not obvious [2].
Do not just raise the timeout
Paper’s own watchdog message makes this point: if you see a world save or edit, “consider increasing timeout-time in spigot.yml but note that this will replace the crash with LARGE lag spikes” [8]. A longer timeout means players sit on a frozen server for longer before the kill. It can be the right short-term call for one known heavy operation, such as a large world edit. As a permanent setting it hides the problem. Watch tick time over a normal day, and fix whatever makes ticks that long.
What I did not verify
I did not reproduce any of these crashes for this post. The log lines are quoted from Paper’s docs, the Minecraft Wiki, and the source files linked above, not from a captured session. The Paper source exits with status 70 when the shutdown is flagged abnormal, which the watchdog does before it halts the server [7][8]. I did not confirm that on a live server. I did not check how Forge or NeoForge handle max-tick-time. The Wings lines come from the upstream and Calagopus repositories on their main branches today, so a panel running an older release may print slightly different text.
Questions people ask
Which setting controls the watchdog on a Paper server, max-tick-time or timeout-time?
timeout-time in spigot.yml. In Paper's source the vanilla watchdog that reads max-tick-time is switched off with a 'Spigot - disable' comment, and Paper starts its own watchdog thread using the spigot.yml value [7][8]. That is the source on Paper's main branch as of 2026-11-15, and I did not check older builds.
Can I turn the watchdog off by setting timeout-time to -1?
Not on Paper. In its source, a timeout of 0 or less is replaced with 300 seconds [8]. On vanilla, max-tick-time=-1 disables the watchdog [6].
My console says 'The server has not responded for 10 seconds'. Is that a crash?
No. Paper's docs describe it as a warning about severe lag that can lead to a crash if it continues, and the log header says it is not a bug or a crash [2]. The real kill comes later, at timeout-time.
My server stopped with no error in the log. What do I check first?
On Linux, run dmesg -T | grep -i killed. Paper's docs say a common cause of an OOM kill is a panel memory limit set too close to -Xmx, and suggest lowering -Xmx by 1 to 2 GB or raising the limit [2].
Sources
- Troubleshooting OutOfMemoryError (Oracle, Java SE 21)
- Basic troubleshooting (PaperMC Docs)
- Aikar's flags (PaperMC Docs)
- spigot.yml reference (PaperMC Docs)
- Global configuration reference (PaperMC Docs)
- server.properties (Minecraft Wiki)
- DedicatedServer.java.patch (PaperMC/Paper, commit 63e41db)
- WatchdogThread.java (PaperMC/Paper, commit 63e41db)
- server/crash.go (pterodactyl/wings)
- application/src/server/mod.rs (calagopus/wings)
- spark command usage
- environment/docker/environment.go (pterodactyl/wings)