[jdk17u-dev] RFR: 8292083: Detected container memory limit may exceed physical machine memory

Jonathan Dowland jdowland at openjdk.org
Fri Aug 26 13:56:48 UTC 2022


This is a backport of 8292083 for jdk17u-dev. I wish to backport this to get the bug fix out
to JDK17 users as we have seen it in live deployments.

The backport is not clean:

 * unrelated changes in src/hotspot/os/linux/os_linux.hpp
 *  in src /hotspot/os/linux/cgroupV1Subsystem_linux.cpp, the original patch modified
CgroupV1Subsystem::kernel_memory_limit_in_bytes, which does not yet exist in jdk17u.
It is introduced in 8287011. I don't know whether that will get backported to 17u in future.

-------------

Commit messages:
 - 8292083: Detected container memory limit may exceed physical machine memory

Changes: https://git.openjdk.org/jdk17u-dev/pull/646/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=646&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8292083
  Stats: 90 lines in 7 files changed: 63 ins; 19 del; 8 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/646.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev pull/646/head:pull/646

PR: https://git.openjdk.org/jdk17u-dev/pull/646


More information about the jdk-updates-dev mailing list