jmx-dev RFR: 8283903: GetContainerCpuLoad does not return the correct result in share mode
xpbob
duke at openjdk.java.net
Wed Mar 30 02:47:44 UTC 2022
On Wed, 30 Mar 2022 02:37:31 GMT, Jie Fu <jiefu at openjdk.org> wrote:
> > In share mode, the process runs for a long time and the number of physical machine cores is large, making it easier to reappear.
>
> So if we run long enough, the `getHostTotalCpuTicks0()` may return overflowed `hostTicks`, right?
GetHostTotalCpuTicks0 is correct
(GetHostTotalCpuTicks0() * containerCPUs) will overflowed
-------------
PR: https://git.openjdk.java.net/jdk/pull/8028
More information about the jmx-dev
mailing list