Skip to content
Try a Minecraft server free. No card needed.48 hours free
AwakeNode
Find my serverMinecraft plansFree trialPay-to-PlayWikiSupport
Legacy billingClient DashboardView plans
AwakeNode

Minecraft server hosting in UK or EU locations. Built by players, for players.

Open a support ticket

Minecraft

  • Minecraft plans
  • Modpack servers
  • Pay-to-Play with friends
  • 48-hour free trial
  • Common questions

Support

  • Wiki and guides
  • Client Dashboard
  • Open a support ticket
  • Legacy game panel (existing servers)
  • Legacy billing (existing accounts)

Company

  • Contact us
  • VPS hosting
  • Terms of service
  • Privacy policy
  • Uptime SLA

AwakeNode is a trading name of Falcon Hosting Ltd.
© 2026 Falcon Hosting Ltd.

Registered in England & Wales · Company No. 15676555 · ICO registration ZB377567
Registered office: Anglo Dal House, 5 Spring Villa Park, Spring Villa Road, Edgware, Middlesex, HA8 7EB, United Kingdom

Error fixes

Error fix

java.lang.OutOfMemoryError: Java heap space

Learn how to resolve the java.lang.OutOfMemoryError: Java heap space on your Minecraft server by adjusting memory allocation or upgrading your plan.

AwakeNode Team · Reviewed by Harry · Updated 15 Oct 2026

What is this error?

The java.lang.OutOfMemoryError: Java heap space occurs when your Minecraft server has exhausted the memory (RAM) allocated to the Java Virtual Machine (JVM). When the server attempts to allocate more memory than it has been assigned, the process crashes to prevent system instability.

Common causes

  • High player count: Too many players for the current RAM allocation.
  • Resource-heavy mods/plugins: Complex mods or poorly optimised plugins consuming excessive memory.
  • Large render distances: High view distances significantly increase memory usage.
  • World generation: Rapidly exploring new chunks can spike memory usage.

How to fix it

On AwakeNode

  1. Upgrade your plan: If your server is consistently hitting its limit, choose Upgrade on your server's page. On AwakeNode, your Xmx (maximum memory) settings are updated automatically to match your new plan, requiring no manual configuration.
  2. Contact Support: If you believe your server should have enough RAM but is still crashing, open a ticket with our support team. To add your own JVM flags, set a custom startup command in your server's Startup tab.

On other hosts / manually

  1. Edit startup flags: Locate your server's startup script or command line settings. You must manually modify the -Xmx parameter. For example, to set the limit to 4GB, ensure your command includes -Xmx4G.
  2. Optimise your environment: Remove unnecessary plugins or mods that may be causing memory leaks. Reduce the view-distance and simulation-distance in your server.properties file to lower the memory footprint.
  3. Check for memory leaks: If the error occurs over time rather than instantly, a specific plugin may be failing to release memory. Use a profiler tool to identify which process is consuming the most heap space.

Questions

Does upgrading my plan automatically fix the heap space error?+

Yes, on AwakeNode, upgrading your plan automatically increases your allocated RAM, and the server will apply these new memory limits upon the next restart.

Can I edit my own startup flags to increase memory?+

To add your own JVM flags, set a custom startup command in your server's Startup tab.

What is the difference between RAM and Heap Space?+

RAM is the physical memory available to your server, while Heap Space is the specific portion of that memory reserved for the Java Virtual Machine to store objects and data while the server is running.

Will adding more RAM always fix the error?+

Adding more RAM helps if your server is simply too large for its current allocation, but it will not fix the error if you have a memory leak caused by a broken plugin or mod.

More error fixes

java.lang.NoClassDefFoundError / ClassNotFoundExceptionLearn how to resolve java.lang.NoClassDefFoundError and ClassNotFoundException errors on your Minecraft server with our step-by-step troubleshooting guide.java.lang.NoSuchMethodError / NoSuchFieldErrorLearn how to resolve java.lang.NoSuchMethodError and NoSuchFieldError on your Minecraft server by identifying version mismatches and plugin conflicts.Exception in server tick loopLearn how to diagnose and resolve the 'Exception in server tick loop' error on your Minecraft server with our step-by-step troubleshooting guide.java.net.SocketException: Connection resetTroubleshoot the java.net.SocketException: Connection reset error on your Minecraft server. Learn how to diagnose network and client-side issues.

Start a Minecraft server

Java or Bedrock, vanilla or modded, with a console, file manager and backups.

See plans