Relative Content

Tag Archive for javakubernetesjvmcontainersout-of-memory

JVM heap size is greater than the container’s memory limit

I run a Java (21) application in my k8s cluster.
I defined the -Xms and -Xmx values to be 780 mib. If I set a lower value to -Xmx the application crashes with out of memory error.
I set the request and the limit of the container to be 600 mib.
I expected the app to be terminated with an out of memory error, but the container is running.