Red Hat Bugzilla – Bug 619711
Memory leak in libvirtd
Last modified: 2013-01-10 22:09:41 EST
This bug has been copied from bug #590073 and has been proposed
to be backported to 5.5 z-stream (EUS).
Fix built into libvirt-0.6.3-33.el5_5.3
Verify this bug with libvirt-0.6.3-33.el5_5.3 on RHEL5u5 Server x86_64 Xen, RHEL5u5 Client i386 and RHEL5u5 Server ia64, and PASSED.
1. Update xen to xen-3.0.3-114.el5, libvirt to libvirt-0.6.3-33.el5_5.3;
2. Restart xend and libvirtd service.
3. Open two terminal.
4. On one terminal, run "while true; do echo connect; done | virsh",
which will repeatedly connect and disconnect to/from libvirtd.
The connect/disconnect loop is not the best way to trigger this leak but seems
to be the easiest one and it shows quite fast.
5. On the other terminal, run "top -d1 -p $(pidof libvirtd)" to watch memory consumption of libvirtd, take note the value of RES column.
With the new package the memory remain more-or-less steady, it sometimes stay unchanged for a while or even go down. So this bug is fixed.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.