Out of memory

OutOfMemoryError: Metaspace

What the log looks like

outofmemoryerror: *metaspace
outofmemoryerror: *compressed class space

How to fix it

  1. Metaspace holds class definitions, not world data — raising -Xmx does nothing
  2. Add -XX:MaxMetaspaceSize=512m or remove the launcher flag that caps it
SeverityStops the game
CategoryOut of memory

Check your own log

Related errors