How to Fix Exit Code 137 (Out of Memory Error)
This guide explains how to fix exit code 137
. This error is caused by insufficient RAM and can be solved by either optimizing your server or upgrading your plan.
Symptoms
-
Your game server abruptly stops or crashes.
-
The server console shows the message
exit code 137
.
Cause
The exit code 137
occurs when the server's RAM (Random Access Memory) is fully consumed. The system terminates the server process to prevent instability. This is often caused by a high number of players, resource-intensive plugins/mods, or a large world size.
Solution
You have two options to fix this issue. We recommend trying Option 1 first.
Option 1: Optimize Your Server
Try to lower your server's RAM usage with these steps:
-
Remove Unnecessary Plugins/Mods: Deactivate and delete any plugins or mods that are not essential for your server.
-
Reduce View Distance: Lowering the
view-distance
in your server's configuration files can significantly reduce memory consumption. -
Limit World Size: If your world is excessively large, consider using a world border or trimming unused chunks.
Option 2: Upgrade Your Plan
If optimization doesn't solve the problem, or you simply need more power for your community, the guaranteed solution is to upgrade your plan.
Steps to Upgrade Your Plan:
-
Log into the Client Panel and navigate to your service.
-
Click the Manage button.
-
In the Upgrades & Add-ons section, select Change Plan.
-
Choose a new plan with more RAM to instantly upgrade your server.