[libvirt-users] guest memory monitor

Martin Kletzander mkletzan at redhat.com
Wed Jan 20 10:53:46 UTC 2016


On Tue, Jan 19, 2016 at 04:50:39PM +0800, frankpersist at gmail.com wrote:
>Hi, everyone,
>    My hypervisor is kvm, when I use libvirt-java api to get guest vm memory information, I found what libvirt can not get real memory(within the vm)statistic, libvirt can only get information from .xml file(such as vmName.xml <currentMemory> lable) in host.
>   My question is, does libvirt support memory monitor(within vm)? if it's true, how to get. if false, what is the difficulty?
>

I'm not sure what exactly you mean by memory monitor within vm.  You can
communicate with your own program in the VM and gather statistics there.
Or I might've misunderstood your question and you might find
virDomainMemoryStats() API helpful.

HTH,
Martin

>Thank you.
>
>
>
>frankpersist at gmail.com

>_______________________________________________
>libvirt-users mailing list
>libvirt-users at redhat.com
>https://www.redhat.com/mailman/listinfo/libvirt-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20160120/e27a12f6/attachment.sig>


More information about the libvirt-users mailing list