user3752288
user3752288

Reputation: 11

get CPU usage of a VM (linux) using java

Is there an API for Java in getting the CPU usage of a VM in KVM? I want to know how I could get the CPU usage using java. Also, does anybody know where I could find the source of virt-manager so I could learn how it gets/computes the CPU usage is displays in Virtual Machine Manager? Thanks in advance.

Upvotes: 1

Views: 319

Answers (1)

Arunjyothis
Arunjyothis

Reputation: 1446

Try kernel config /proc/config.gz for CONFIG_PARAVIRT_CLOCK and CONFIG_KVM_CLOCK

Upvotes: 1

Related Questions