[SR-Users] The domain module in 5.1.8 has a memory leak

Henning Westerholt hw at skalatan.de
Tue Aug 6 09:52:16 CEST 2019


Hi Mack,

did you managed to test it as well?

Cheers,

Henning

Am 04.08.19 um 21:18 schrieb Mack Hendricks:
Hey Henning,

Thanks for the fast response.   I will try it later tonight and let you know.

On Aug 4, 2019, at 3:16 PM, Henning Westerholt <hw at skalatan.de<mailto:hw at skalatan.de>> wrote:


Hi Mack,

looks indeed like an issue. Can you try with git master commit f50177003c21f. If your test is also ok, I will backport to stable branch

Cheers,

Henning

Am 04.08.19 um 19:49 schrieb Mack Hendricks:
Based on my tests, the memory leak is only exposed when you are using domain attributes, which are stored in the domain_attrs table.  I wanted to see if anymore else is running into this issue.

Reproducible use case:

1) Insert the following into the database

insert into domain values (null,"aprilco.com<http://aprilco.com/>","aprilco.com<http://aprilco.com/>",now());
insert into domain_attrs values (null,"aprilco.com<http://aprilco.com/>","pbx_type",0,"0",now());
insert into domain_attrs values (null,"aprilco.com<http://aprilco.com/>","pbx_id",0,"65",now());

2) Open a new terminal window and execute:

watch "kamcmd core.shmmem"

3) Open up another terminal windows and execute:

while true; do kamcmd domain.reload; done

Expected Results:

You will see the shared memory being allocated, but never freed.  The more entries you have in the domain_attrs table, the faster it will run out of memory.

Thanks,

Mack Hendricks / Head of Support / dOpenSource
web: http://dopensource.com<http://dopensource.com/>
support: +888-907-2085
dSIPRouter<http://dsiprouter.org/> - GUI focused on implementing Kamailio to provide SIP Trunking and PBX Hosting Services





_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services


--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190806/4462bbd4/attachment.html>


More information about the sr-users mailing list