advancedSpring Boot on Kubernetes: Health Probes, Config, Scaling & Observability
Spring Boot Pod restarts repeatedly in production with OutOfMemoryError
JVM exceeded its heap limit. Check: (1) container memory limit -- is it actually set? (2) -XX:MaxRAMPercentage or -Xmx value -- is the heap ceiling correct? (3) Heap dump/metrics -- is there a leak or sustained high allocation? With MaxRAMPercentage, also check whether non-heap (metaspace, direct buffers) is consuming unexpected memory in addition to heap.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
Spring Boot Pod restarts repeatedly in production with OutOfMemoryError