<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Mack,</p>
<p>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<br>
</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 04.08.19 um 19:49 schrieb Mack Hendricks:<br>
</div>
<blockquote type="cite" cite="mid:CAMr6TxHF18QwXxsQm17eg9k=p9i=6vf-MsnRdsMZwKni2me8Tg@mail.gmail.com">
<div dir="ltr">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.
<div><br>
</div>
<div><b>Reproducible use case:</b></div>
<div><br>
</div>
<div>1) Insert the following into the database</div>
<div><br>
</div>
<div>insert into domain values (null,"<a href="http://aprilco.com" moz-do-not-send="true">aprilco.com</a>","<a href="http://aprilco.com" moz-do-not-send="true">aprilco.com</a>",now());<br>
</div>
<div>insert into domain_attrs values (null,"<a href="http://aprilco.com" moz-do-not-send="true">aprilco.com</a>","pbx_type",0,"0",now());<br>
</div>
<div>insert into domain_attrs values (null,"<a href="http://aprilco.com" moz-do-not-send="true">aprilco.com</a>","pbx_id",0,"65",now());<br>
</div>
<div><br>
</div>
<div>2) Open a new terminal window and execute:</div>
<div><br>
</div>
<div>watch "kamcmd core.shmmem"<br>
</div>
<div><br>
</div>
<div>3) Open up another terminal windows and execute:</div>
<div><br>
</div>
<div>while true; do kamcmd domain.reload; done<br>
</div>
<div><br>
</div>
<div><b>Expected Results:</b></div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>
<div class="gmail-ApplePlainTextBody" style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
<b>Mack Hendricks / Head of Support / dOpenSource</b></div>
<div class="gmail-ApplePlainTextBody" style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
web: <a href="http://dopensource.com/" moz-do-not-send="true">http://dopensource.com</a></div>
<div class="gmail-ApplePlainTextBody" style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
support: +888-907-2085</div>
<div class="gmail-ApplePlainTextBody" style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">
<a href="http://dsiprouter.org/" moz-do-not-send="true">dSIPRouter</a> - GUI focused on implementing Kamailio to provide SIP Trunking and PBX Hosting Services</div>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>