1
votes

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.

1

1 Answers

1
votes

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