[jdk11u-dev] Integrated: 8269851: OperatingSystemMXBean getProcessCpuLoad reports incorrect process cpu usage in containers
Severin Gehwolf
sgehwolf at openjdk.java.net
Thu Aug 5 14:55:32 UTC 2021
On Tue, 3 Aug 2021 16:04:31 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> Please review this backport of JDK-8269851 to OpenJDK 11u. That code stream is affected by the same bug and should get fixed in the same way as it got fixed with [JDK-8265836](https://bugs.openjdk.java.net/browse/JDK-8265836) for system CPU load, but for process CPU load.
>
> The patch only differs minimally from the JDK 18 patch, but doesn't apply clean due to the following reason. This version uses `getSystemCpuLoad()` and `getSystemCpuLoad0()` instead of `getCpuLoad()` and `getCpuLoad0()`.
>
> Testing: Manually using the reproducer code from the bug and tier1 on Linux x86_64.
>
> Thoughts?
This pull request has now been integrated.
Changeset: 52a32a76
Author: Severin Gehwolf <sgehwolf at openjdk.org>
URL: https://git.openjdk.java.net/jdk11u-dev/commit/52a32a764f2bbe7bdf962e518ec1ae6f250e072c
Stats: 214 lines in 1 file changed: 137 ins; 74 del; 3 mod
8269851: OperatingSystemMXBean getProcessCpuLoad reports incorrect process cpu usage in containers
Reviewed-by: clanger
Backport-of: 25f00d787cf56f6cdca6949115d04e7d8e675554
-------------
PR: https://git.openjdk.java.net/jdk11u-dev/pull/183
More information about the jdk-updates-dev
mailing list