Spring Boot actuator "system.cpu.usage" vs "process.cpu.usage"
Asked Answered
B

1

9

I am using spring boot 2.3.2. With help of actuator, publishing the application metrics to metrics console. I would like to know what is the difference between system.cpu.usage and process.cpu.usage metrics polished by the actuator.

Beggarly answered 25/11, 2020 at 15:26 Comment(0)
T
12

Based on source code

  • system.cpu.usage -- The recent cpu usage for the whole system
  • process.cpu.usage -- The recent cpu usage for the Java Virtual Machine process

For more info about these metrics you can look at java doc of this bean OperatingSystemMXBean

Timi answered 15/1, 2021 at 20:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.