Skip to content

Get 25% OFF your first month on every game! 🎉

MinecraftTroubleshooting

Minecraft server exit codes 1, 137 and 143

What Java exit codes 1, 137 and 143 mean for your Minecraft server, where to find the number in the panel, and how to fix a memory kill.

Updated 6 min read

When a Minecraft server stops without you pressing Stop, Java ends with a number called the exit code, and that number narrows down why. The three you will meet most are 1, 137 and 143. The Console shows the number when the server crashes, and the table below says what each one means for your server.

Checked against Minecraft 26.3, the Java 25 and OpenJDK documentation and the Paper documentation, October 2026.

Where to find the exit code

The live Console shows it in a plain notice:

  • A red Your server crashed with exit code 137 - restarting automatically… names the code, here 137. Every code other than 0 reads this way.
  • When the server went over its memory, a second red line follows it: It ran out of memory: the server used all the RAM its plan gives it.
  • An amber Your server stopped on its own - restarting automatically… means the exit code was 0, so the server ended itself on purpose. One common cause is a Minecraft EULA that was never accepted, so check that first. The Console asks for it with an Accept the Minecraft EULA prompt the first time you press Start.

For a crash that has scrolled out of view, the downloadable log has the same lines:

  1. On the Console tab, press Download Log (the download icon on a phone).
  2. Pick Last hour. For an older crash pick Earlier boots (7 days), which keeps the first and last lines of each boot.
  3. Search the file for exit code. Check whether It ran out of memory comes right after it, which matters for 137.

What the common codes mean

CodeMeaningStart here
0A clean finish. Java documents 0 as successful completion.The Accept the Minecraft EULA prompt
1An error. Java documents any value above 0 as an error. Minecraft's own watchdog exits with 1.The lines above it in the log
137The process was killed outright (SIGKILL).The It ran out of memory line, then RAM
143The process was asked to terminate (SIGTERM).What stopped it from outside

Codes above 128 follow a convention that the shell and Java both use: 128 plus the signal number. SIGKILL is signal 9, which gives 137. SIGTERM is signal 15, which gives 143. Java's own signal handler exits with exactly that number after a terminate request, so it can run its shutdown hooks first.

Exit code 1

Scroll up from the exit code in the log and look for the last error before the server stopped.

  • A crash report line (This crash report has been saved to:) means Minecraft crashed. Follow Fix "Exception in server tick loop" crash.
  • UnsupportedClassVersionError means a jar was built for a newer Java than the one running. Our panel picks Java from your Minecraft version and shows it as "Runs on Java N" in JAR Manager, so look for a mod or plugin built for a newer Java than the one your server runs. Replace it with an older build: delete the jar in File Manager, then press Versions on its row in the Mods or Plugins store, where each build your server cannot run is grayed out with a note such as "Needs Java 25, this server runs Java 21", and install one that is not.
  • A mod or plugin error before the world loads is a mod problem. Disable the newest add-on from the Installed view of the Mods tab (Plugins on Paper, Purpur and Folia) and start again.

Exit code 137 and memory

A 137 followed by the red It ran out of memory line means the server went over the memory your plan gives it. The system then kills the process, and Java gets no chance to write a crash report. The Paper documentation lists the same cause for a crash with no log.

Our start script already leaves room. On plans of 1 GB and up, the Java heap is set to your plan's RAM minus a margin of 10 percent, with the margin kept between 512 and 1536 MiB. Below 1 GB there is no margin. The margin is there because Java also uses memory outside the heap. Even so, the Paper documentation names a memory limit set too close to the Java heap maximum as a common cause of these kills, and says Java can use a little more than that maximum. To fix it:

  1. Open the Config Editor and lower View distance (chunks) and Simulation distance (chunks) under Performance.
  2. Remove or disable the heaviest add-ons. Why is my server lagging? Find the cause shows how to spot them.
  3. If it still happens, check the RAM Usage card on the Console tab and move up a plan: Upgrade or downgrade your plan.

You cannot change the Java memory flags yourself, so more RAM means a bigger plan. How much RAM does my Minecraft server need? has worked numbers.

A 137 without that line means the plan's memory limit was not what killed the process. Something sent the kill signal on purpose or from outside. Our Force stop button sends SIGKILL, and so does a Power action schedule on the Schedules tab set to Kill (force stop), so check whether either was used. If neither was, press Download Log and keep the file for support.

A line such as java.lang.OutOfMemoryError: Java heap space is a different failure, where Java itself ran out of heap. The fixes above help with it too.

Exit code 143

Something outside the game asked the process to end, and Java closed down in an orderly way. The panel's own Stop does not work this way: our server template stops the game by sending it the stop command, not a signal. So the SIGTERM came from outside the panel's own Stop. Docker's stop command is one source, because it sends SIGTERM first. If it repeats, press Download Log and keep the file for support.

Crashes inside Java itself

A crash in the Java runtime does not write a normal crash report. It leaves a file named hs_err_pid followed by a number, which Oracle's Java documentation says is created in the working directory of the process. Our start script runs from the server's top level, where start.sh sits, so look at the top level of the File Manager. If Java cannot write there, it falls back to the system temp folder, which you cannot see. Memory shortage is the most common cause.

Tip

The panel starts a crashed server again for you, unless it keeps crashing: if the last crash was only moments ago, it stops trying and says so in amber: It crashed again within a minute, so it won't restart by itself. When it does restart, the newest log lines can belong to a second boot. Choose Last hour or Earlier boots (7 days) to see the first crash.

Ready to launch your Minecraft server?

Your choice of location, NVMe disks and DDoS protection, with the version and mod loader yours to change whenever you like.

See Minecraft plans