JDK-8307471 : Release Note: JVM max available memory in container can't exceed physical machine memory
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8u381
  • Priority: P4
  • Status: Closed
  • Resolution: Withdrawn
  • Submitted: 2023-05-04
  • Updated: 2023-06-14
  • Resolved: 2023-06-14
Description
If the cgroup_v1 container where you run the Java app is configured to have a memory limit higher than physically available on the host, the JVM might run with a higher-than-usual memory footprint.

This issue was fixed in the current release.
For the earlier releases, workarounds are to use `-XX:-UseContainerSupport` flag, use `-XX:MaxRAM=<physical_memory_amount>`, or apply a container limit that is smaller than the physical machine memory.
Comments
The changes from the parent ticket were in particular aggregated in the Release note "umbrella" ticket JDK-8307635. Closing this one as a duplicate.
11-05-2023