Bug 2223911

Summary: libvirtd memory leak, process grows to 22GB
Product: Red Hat Enterprise Linux 8 Reporter: José Enrique <josgutie>
Component: libvirtAssignee: Peter Krempa <pkrempa>
Status: NEW --- QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 8.6CC: jdenemar, mjankula, pkrempa, virt-maint, ymankad
Target Milestone: rcFlags: josgutie: needinfo-
pkrempa: needinfo? (josgutie)
Target Release: 8.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description José Enrique 2023-07-19 09:05:34 UTC
Description of problem:
Libvirt daemon has a memory consumption of 22GB.

# cat ps_auxwwwm | sort -nk +6 | tail -n 3
root     2092181  1.1  0.0 33570920 217196 ?     -    Jul13  83:14 /opt/appformix/manager/venv/bin/python3 /opt/appformix/manager/venv/bin/uwsgi --http 0.0.0.0:42595 --logto /var/log/appformix/manager/uwsgi.log --log-maxsize 10485760 --enable-threads --limit-post 20971520 -w appformix_manager:host_server
root     1134562 20.8  0.0 1409684 257036 pts/1  -    12:12   0:26 /usr/libexec/platform-python -s /sbin/sosreport
root        1637  0.0  0.2 727112 531928 ?       -    Jun02  45:15 /usr/lib/systemd/systemd-journald
root        3802  0.1  7.8 22404016 20673448 ?   -    Jun02 126:51 /usr/sbin/libvirtd

Version-Release number of selected component (if applicable):

libvirt-8.0.0-5.9.module+el8.6.0+18552+b96c5a91.x86_64

How reproducible:


Steps to Reproduce:
I don't know how to reproduce it

Comment 2 Peter Krempa 2023-07-19 11:45:10 UTC
There was a recenlty fixed memory leak in virNodeDeviceGetXMLDesc:

https://bugzilla.redhat.com/show_bug.cgi?id=2208599

It reproduces with libvirt-8.0.0-5.9.module+el8.6.0+18552+b96c5a91.x86_64, which is the version mentioned above and is fixed in libvirt-8.0.0-5.10.module+el8.6.0+18949+ba4ca8a3.x86_64.

Can you please update and retry?