Skip to content
ohsudo, Home

Tags

#maven

Java heap space
Linux

java.lang.OutOfMemoryError: Java heap space: size the heap, then find what fills it

Fix "java.lang.OutOfMemoryError: Java heap space": check the default heap, set -Xmx or MaxRAMPercentage in containers, take a heap dump, and fix Maven and Gradle builds.

Intermediate · 3 min read