Minecraft ran out of memory (OutOfMemoryError)
Short answer: The game needed more memory than you gave it. Raise the RAM in your launcher, but don't go past about half of your PC's total RAM.
What it means
Java only uses the amount of memory it's allowed. Big modpacks often need more than the launcher's default, and when the game hits the limit it crashes with OutOfMemoryError.
If the message says Metaspace, it ran out of the memory Java uses for loaded code, which is also a sign of a very large pack.
If you already give it plenty and it still crashes after playing for a while, a mod is probably leaking memory.
How to fix it
- Raise the RAM in your launcher. 4 GB is fine for vanilla and small packs, large packs usually want 6 to 8 GB.
- Don't give it more than about half your PC's RAM. Windows and everything else need room too.
- Already at 8 GB or more? Lower your render distance and look at your mods' issue pages for memory leak reports.
- On a server that keeps running out, the plan may simply be too small for the pack.
Not sure this is your crash?
Paste your crash report or latest.log into the checker. It reads the log in your browser and tells you what broke, and how sure it is.
Check my crash log