🚀 UltraServers Relaunch We're thrilled to announce the relaunch of our service with a brand-new, streamlined panel designed to enhance your gaming experience. Join our Discord for more information, lifetime discounts and to take part in our $175 raffle to win Steam gift cards.
Out of Memory Error
Some Minecraft servers experience “Out of Memory” errors. This document goes through the common causes and how to fix them.
Identify the Out of Memory error
- Look for the
Out of Memory: true
message in your server console, and will not show up in your crash reports or logs. - This message indicates that your server is experiencing an OOM error.
Server marked as stopped
[Daemon]: ---------- Detected server process in a crashed state! ----------
[Daemon]: Exit code: 137
[Daemon]: Out of memory: true
[Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.
Possible Causes
When a Minecraft server faces the out of memory error, it can be caused due to the following:
- Insufficient RAM
- Memory leak
Insufficient RAM
If the server is crashing due to insufficient RAM, it might be fixable without requiring a plan with more memory.
By default, all Minecraft servers are configured to allocate a certain percentage of RAM to leave some space for the underlying operating system. In some cases, it is possible to increase this ratio in favor of the Minecraft server to give it an extra “memory boost” that could give it what it needs to avoid the crash.
- 1 Click on the Startup tab of your server.
- 2 Increase the percentage of ram that the server can use.
- A value of 50 would mean that a server with 10GiB of memory would only be able to use up to 5GiB (50%). Increase it in the range of 85-95%, the more memory the server has, the safer it is to reach high percentage counts.
- If “out of memory” crashes still persist after adjusting the percentage, the underlying server may not have a sufficient amount of RAM. This often happens with large modpacks, and the only solution in that case is to acquire a plan with more memory available.
Memory leak
Sometimes plugins and mods can misbehave due to improper programming practices by their creators. This often occurs due to improper handling of arrays[]
which continually grow in size, resulting in an out of memory crash.
This issue is very hard to identify, but can often be spotted by a slow (or fast, depending on the severity of the cause) steady increase of the used server memory. If you believe your server is currently suffering from this, please contact our Support Team and we will help you diagnose the root cause.
If you require further assistance, you can open a support ticket here.
Feedback and suggestions can be submitted here, or further discussed on our Discord server.