General

Exit Code 137

FrietzFrietz
Updated September 16, 2026·31 views

How to Fix Minecraft Server Exit Code 137

Exit Code 137 means the Minecraft server process was forcibly terminated. In most cases, this happens because the server ran out of available memory (RAM).

Symptoms

You may see:

Out of memory: true```

The server may also suddenly stop during startup or while players are online.

#Common Causes

- The server reached its RAM limit.
- Too many plugins or mods are running.
- A mod/plugin is using excessive memory.
- World generation is consuming a large amount of RAM.
- Too many entities or chunks are loaded.
- A plugin or mod has a memory leak.


# How to Fix It

### 1. Check Your RAM Usage

Check the memory usage in your server panel.

If the server consistently reaches its memory limit before crashing, RAM is likely the cause.

### 2. Remove Unnecessary Plugins or Mods

If you recently installed a plugin or mod, try removing it and starting the server again.

Heavy or poorly optimized plugins/mods can consume significant amounts of memory.

### 3. Reduce Server Settings

Try lowering:

```view-distance=8
simulation-distance=6```

You can adjust these values further depending on your server and player count.

### 4. Reduce Server Load

You can also try:

- Reducing excessive entities
- Limiting chunk generation
- Removing unnecessary datapacks
- Avoiding extremely large farms
- Using optimized server software such as Paper when appropriate


### 5. Upgrade Your RAM

If your server genuinely requires more memory, consider upgrading your server plan.

> **Note:** Increasing RAM is not always the solution. If a plugin or mod has a memory leak, the problem may continue even with additional RAM.

# Still Getting Exit Code 137?

If the server continues to crash, contact support and provide:

- The **full console log**
- Minecraft version
- Server software
- Java version
- RAM allocation
- Installed plugins/mods
- Number of players online when the crash occurred


**Important:** The exit code is only a starting point. The console messages immediately before Exit Code 137 can reveal the actual cause.

Was this article helpful?