Out of Memory error on a Minecraft server

Problems and errors · updated 28 November 2026

The error java.lang.OutOfMemoryError: Java heap space means the server ran out of RAM. The server usually freezes or shuts itself down.

High RAM usage is not always a problem

Java takes memory and only gives it back when it has to. That is why the graph in the panel often shows 80-95% even on a quiet server. It only becomes a problem when you get the error or the server shuts down.

The most common causes

  • A modpack that is too big for the plan. All The Mods, for example, needs at least 8 GB.
  • World generation: players flying into new terrain with an elytra load hundreds of chunks. Pregenerating the world and a world border help.
  • A high view-distance with many players online.
  • A plugin or mod with a memory leak: memory keeps growing for hours until the server crashes.
  • Thousands of mobs and items in farms.

What to do

  1. Restart the server to get it running again.
  2. Lower view-distance and simulation-distance (optimization guide).
  3. Install Spark and check the memory with spark heapsummary. It shows what takes up the most. You can send us the report link on Discord and we will help you read it.
  4. Set up a daily automatic restart.
  5. Remove or update the plugin that uses the most memory.

If the server keeps shutting down, it needs more memory. See how much RAM you need. You can upgrade the plan in the Settings tab.

Frequently asked questions

Can I raise the RAM myself in the startup settings?

No. The amount of memory comes from your plan. A higher value in the Java parameters will not give you more memory, and it can stop the server from starting.

The console shows a warning about high RAM usage.

That is only information. If the server runs smoothly, you do not need to do anything.