Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot actuator "system.cpu.usage" vs "process.cpu.usage"

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.

like image 965
Manu Avatar asked Oct 14 '22 23:10

Manu


1 Answers

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

like image 57
Kirill Liubun Avatar answered Dec 21 '22 17:12

Kirill Liubun