Skip to content

Server ran out of memory

When a server uses more memory than its plan allows, it is stopped. The console prints an exit code and whether memory was the cause, for example Out of memory: true. An exit code of 137 usually means the process was killed, which is typical for running out of memory.

Minecraft servers can also print java.lang.OutOfMemoryError.

  1. Remove what uses the most memory. Heavy plugins, big mods, and large modpacks are the usual cause.
  2. Lower view distance and simulation distance in Properties. Search for view distance.
  3. Pre-generating the world in advance can help avoid spikes while players explore.
  4. Restart on a schedule. A daily restart clears memory that builds up over time. See Schedules.
  5. Upgrade your plan if the server is simply too big for its memory. See Upgrade your plan.

The Console page shows current memory use next to your plan’s limit. Watch it while players are online to see if it climbs close to the limit.

Still stuck? Open a ticket with the last lines of your console. See Contact support.