{"id":83,"hash":"a67fb32b7f8227b01d2f50092823d75a5392c1f4a67d266f3cbd11657a59b98b","pattern":"java.lang.OutOfMemoryError: Java heap space","full_message":"Exception in thread \"main\" java.lang.OutOfMemoryError: Java heap space","ecosystem":"maven","package_name":null,"package_version":null,"solution":"JVM hit the configured max heap.\n1. Raise heap: `-Xmx4g` (startup) or `JAVA_OPTS=-Xmx4g`.\n2. Generate a heap dump on OOM: `-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heap.hprof`. Analyze with VisualVM or Eclipse MAT.\n3. For containerized apps, set `-XX:MaxRAMPercentage=75` so the JVM respects the cgroup limit.","confidence":0.9,"source":"internal","source_url":null,"votes":23,"created_at":"2026-04-19T03:37:14.151804+00:00","updated_at":"2026-04-19T03:37:14.151804+00:00"}