Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HealthMonitor reports load statistics incorrectly #12190

Closed
ceeaspb opened this issue Jan 23, 2018 · 0 comments
Closed

HealthMonitor reports load statistics incorrectly #12190

ceeaspb opened this issue Jan 23, 2018 · 0 comments

Comments

@ceeaspb
Copy link

@ceeaspb ceeaspb commented Jan 23, 2018

HealthMonitor||[xxx]:5704 [dev] [3.9.2] ...
, load.process=0.02%, load.system=0.70%, load.systemAverage=2435.00%
...

Here the process cpu was 2% not 0.02%, and overall machine/server cpu 70% not 0.7%.

The values the JVM reports are between 0.0 and 1.0 - not 0 and 100 percent.

registerMethod(metricsRegistry, mxBean, "getProcessCpuLoad", "os.processCpuLoad");

https://docs.oracle.com/javase/8/docs/jre/api/management/extension/com/sun/management/OperatingSystemMXBean.html#getSystemCpuLoad--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.