jmx-dev RFR: 8269851: OperatingSystemMXBean getProcessCpuLoad reports incorrect process cpu usage in containers [v4]
xpbob
github.com+7837910+xpbob at openjdk.java.net
Mon Jul 12 03:49:50 UTC 2021
On Fri, 9 Jul 2021 14:19:42 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> Thanks for the update. `getProcessCpuLoad()` and `getCpuLoad()` looks way too similar to me. Is there a way to make them more generic and do the process vs. system paths as needed? I think there is.
use getCpuLoadWithTarget for process and system
-------------
PR: https://git.openjdk.java.net/jdk/pull/4702
More information about the jmx-dev
mailing list