Reputation: 11
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
Reputation: 1446
Try kernel config /proc/config.gz for CONFIG_PARAVIRT_CLOCK and CONFIG_KVM_CLOCK
Upvotes: 1