getProcessCPULoad returns different CPU percentage as comparead to top linux command
David Holmes
david.holmes at oracle.com
Mon Nov 6 05:28:16 UTC 2023
Hi,
On 3/11/2023 11:50 pm, Nikhil Agarwal wrote:
> Hi All,
>
> getProcessCPULoad returns different CPU percentage as
> compared to top linux command intermittently . Does it supposed to
> returned same data as top command always . Should the getProcessCPULoad
> value be same as top/number of cpus always ?
I've no idea how top calculates what it does. The VM reads the first
line of /proc/stat to get the various tick counters.
HTH.
David
> regards
>
> Nikhil
>
More information about the serviceability-dev
mailing list