Memory Leak in onehost update
|Category:||Core & System|
|Target version:||Release 4.14|
|Affected Versions:||OpenNebula 4.10|
We have a script that regularly (once per minute) updates a number of attributes of our virtualization hosts through the xmlrpc API. Since we started running the script, oned starts accumulating as much memory as it can get over the time. This behaviour can be reproduced by updating a single host multiple times via the "onehost update" command using a simple static template.txt file which just has a number of "KEY = VALUE" pairs in it.
Steps to reproduce:
- Download test_update.sh and template.txt to an opennebula server
- Execute test_update.sh as user oneadmin and pass a host ID as a single commandline parameter (e.g. "./test_update.sh 7")
- Watch increasing amount of memory used by oned process while script executes 100 onehost update commands
The bug was observed on a OpenNebula 4.10.2 installation. Running this script once increases memory usage by approx. 4MB on our server. Running it once per minute for 20 hosts means approx. 80MB memory leak / minute, which is a severe issue for our installation.
#2 Updated by Michael Schmidt over 4 years ago
Have you been able to find the problem already and is there any chance of having a bugfix release of OpenNebula 4.12 for this? It's a pretty serious issue for us. If you need help investigating, we can try to debug the code ourselfes and submit a patch for the leak.