<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>can you try with the patch from this commit:</p>
<p> -
<a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/commit/e0f95ea7fc691f976564b07436848673c633195d">https://github.com/kamailio/kamailio/commit/e0f95ea7fc691f976564b07436848673c633195d</a></p>
<p>The memset() is optional, more for long term safety, the if block
at the end of the function is relevant.</p>
<p>In 4.4, the file to change is modules/drouting/dr_time.c instead
of src/modules/drouting/dr_time.c.</p>
<p>If all is fine, then I will backport it.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 11.01.18 11:57, Uri Shacked wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMMbDhQ=8uouSKs39b-0kB=m9UnKeuy57TVY29UTEhdMHccFHg@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra">Hi,</div>
<div class="gmail_extra">I have some kind of memory growth
(leak?).</div>
<div class="gmail_extra">kamailio 4.4.1.</div>
<div class="gmail_extra">started with 64M for shmem, had a crash
after 5 days of traffic.</div>
<div class="gmail_extra">increased shmem to 128, but still
memory grows everyday.</div>
<div class="gmail_extra">when traffic load decrease, the memory
growth stops but memory stays on the same level. when traffic
increase again,used memory continue to grows again.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I started kamailio now with the "-x qm"
option to debug shmem.</div>
<div class="gmail_extra">every half hour i dump the status of
it.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">there are several modules that the
memory size is increasing (some of them are obvious).</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">but, one is very strange.... DROUTING</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I am using drouting module for each
call on my kamailio.</div>
<div class="gmail_extra">the DB tables are very small, and there
is no reloads.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">only one time used in my script :</div>
<div class="gmail_extra">..<br>
</div>
<div class="gmail_extra">...</div>
<div class="gmail_extra">subst_user('/(.*)/$avp(xxx)/');</div>
<div class="gmail_extra">if(!do_routing("$avp(yyyy)")){</div>
<div class="gmail_extra"> xlog...somthing;</div>
<div class="gmail_extra">return(-1)</div>
<div class="gmail_extra">}</div>
<div class="gmail_extra">..</div>
<div class="gmail_extra">....</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">
<div class="gmail_extra">the shmem that is rapidly growing and
does not make sense is:</div>
<div class="gmail_extra">"from drouting: dr_time.c:
ac_get_maxval(219)"</div>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">seems that when i used mem_join =1, the
growth was smaller, but still significant.</div>
<div class="gmail_extra">now i use mem_join = 0, it seems
rapidly increasing...</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I have more information from the logs,
will send it if necessary (it is just a lot...)</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">any ideas ?</div>
<div class="gmail_extra">cheers,</div>
<div class="gmail_extra">Uri</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>