RFR: JDK-8287011: Improve container information [v3]

Thomas Stuefe stuefe at openjdk.java.net
Tue Jun 7 15:07:11 UTC 2022


On Fri, 3 Jun 2022 14:05:27 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> The change adds some potentially interesting cgroup v1 and v2 metrics to hs_err / hs_info files.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   handle new cgroupv1 and v2 values in TestMisc

Hi Severin,

> * What's the use-case for those diagnostics? Usually on kubernetes swap is disabled so the swap info there is quite useless in that case. Why is the kernel memory info needed? The bug doesn't say _why_ it's important to have.

Memory+swap (v1) or only swap (v2) limits are interesting to us since they may limit memory usage of a container the same way memory limit does. We are often confronted with unexplainable OOM kills or container kills; it makes sense to know the whole cgroup config, not only part of that.

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

PR: https://git.openjdk.java.net/jdk/pull/8991


More information about the hotspot-runtime-dev mailing list