Fix1 min read

Out of memory or Java heap space

Give the modpack the recommended memory, but no more than half your computer's RAM.

Screenshot by DigitalCraver
On this page

You might see

  • OutOfMemoryError
  • Java heap space
  • GC overhead limit exceeded
  • Out of memory
  • Exit code: -805306369
  • Exit code -805306369

Recommended memory

  • All the Mods 10All the Mods 1010 GB

How to fix it

  1. Find the recommended memory on the server's page.
  2. Set it in your launcher. CurseForge: Settings → Minecraft → Java Settings → Allocated Memory. Modrinth App: Settings → Java and memory. Prism: Settings → Java → Maximum memory allocation.
  3. Don't give more than half your computer's total RAM. Close browsers and other games while you play.
Good to know

More isn't faster. Far more memory than the pack needs can make stutter worse.