New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible Kamailio presence server (BLF) memory leak #155
Comments
Given that the module uses libxml2, the leak could be that some xml trees are not freed. What were the symptoms when it stopped working? Did you get any error messages in syslog? |
GXP2160 stop BLF blink
In log:
|
I do next test. How many memory leak in time for each 100 calls in kB:
code:
output:
I have tried to compile Kamailio both with the latest git version of libxml - libxml2.so.2.9.2 as well as with the Debian wheezy repository version libxml2.so.2.8.0 .In both cases with the same memory leak.I have tried to create the same BLF presence server using opensip. The memory leak with the same load was not present. However there seems to be different bugs - opensip presence server stops responding few seconds after a call refer.Thanks |
I pushed a patch in master branch fixing some leaks I could spot on use of libxml2 api. Can you test with latest master and report the back if there are still leaks around or not? |
I tested today and it looks like that the problem is solved. |
Thanks for report, troubleshooting and testing the patch. |
Hello I have problem with Kamailio presence,dialog(BLF) server, that not released memory.
In product enviroment stop working after cca. week in test enviroment out of memory after cca. 12000 calls.
I create test enviromet on one openvz debian wheezy server where run:
On grandstream gxp2160, sets programable keys to blf 1-24.
BLF works correctly, only problem is a memory leak.
The stable kamailio as presence server leak too.
Tests results:
Configs for replication:
Kamailio main registrar server changes from stock config mark as #change
Kamailio presence server
Sipp uas
sipp -sf uas.xml 81.31.45.53 -p 5090 -trace_err
Sipp UAC
sipp -sf ./uac.xml -p 5099 -s uas -r 1 -rp 1000 -m 10000 81.31.45.53:6688 -trace_err -inf ./inf3.csv
inf3.csv
count_mem.sh
/usr/local/kamailio-dev/sbin/kamailio -v
/usr/local/kamailio-4.2/sbin/kamailio -v
uname -a
Thanks.
The text was updated successfully, but these errors were encountered: