Skip to content

getProcessCpuLoadBetweenTicks vs getSystemCpuLoadBetweenTicks? #1475

@ope-nz

Description

@ope-nz

I have an application that is monitoring overall CPU and process CPU using OSHI 5.x

Today I noticed one server reported a 43% overall CPU usage however when I checked the total of the process CPU usage it was 21% - values are stored rounded.

This Azure server show as 2 physical and 4 logical cores.

According to the docs and the demo GUI the process CPU usage "should be divided by the number of logical processors".

Is this still correct? If I divided by physical cores I would get 42 which aligns with the overall CPU usage - Im not sure if this is just a coincidence.

Or is the problem with the overall CPU?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionHow to use OSHI / Can OSHI do this?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions