<div dir="ltr">Hi,<div><br></div><div>Looks like the patch solved the issue.</div><div>Just one thing - i am using 4.4.1. and the is no "../../core/mem/shm_mem.h" in modules directory.</div><div>So, I changed it to "../../mem/shm_mem.h"</div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 12, 2018 at 10:52 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>I pushed an addition patch do drouting module. Can you try with
it as well?<br>
</p>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div class="m_3859299958838135348moz-cite-prefix">On 12.01.18 09:24, Uri Shacked wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Daniel,
<div>It seems to keep on growing after calls traffic
increased.:-(</div>
<div>On production after dr_timer.c was changed and kamailio
installed again,</div>
<div>Thanks,<br>
<div>Uri</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jan 12, 2018 at 7:33 AM, Uri
Shacked <span dir="ltr"><<a href="mailto:ushacked@gmail.com" target="_blank">ushacked@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">Ok,
<div dir="auto">Installed on production at midnight.</div>
<div dir="auto">After 7 hours with very small traffic the
ac_get_maxval keeps on growing.</div>
<div dir="auto">At startup count = 6 size = 120 bytes</div>
<div dir="auto">After 7 hours with no more than 1000
calls, cout = 3756 size = 124144.</div>
<div dir="auto"><br>
</div>
<div dir="auto">I have a feeling is still leaks. </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">בתאריך 11 בינו׳ 2018 20:02, "Uri
Shacked" <<a href="mailto:ushacked@gmail.com" target="_blank">ushacked@gmail.com</a>>
כתב:
<div>
<div class="m_3859299958838135348h5"><br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">installed.
<div>hard to get enough traffic on test.</div>
<div>will deploy today, and have results on
sunday. </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jan 11, 2018 at
4:08 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span>
<p><br>
</p>
<br>
<div class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210moz-cite-prefix">On
11.01.18 13:04, Uri Shacked wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Thanks.
<div>installed OK on my test
environment.</div>
</div>
</blockquote>
<br>
</span> Only installed or also tested a
bit and all looks fine so far?<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890h5"><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>will install in 2 days on my
production and keep you posted.</div>
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On
Thu, Jan 11, 2018 at 1:21
PM, Daniel-Constantin Mierla
<span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>can you try with the
patch from this
commit:</p>
<p> - <a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/commit/e0f95ea7fc691f976564b07436848673c633195d" target="_blank">https://github.com/kamailio/ka<wbr>mailio/commit/e0f95ea7fc691f97<wbr>6564b07436848673c633195d</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<wbr>.</p>
<p>If all is fine, then
I will backport it.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083h5">
<br>
<div class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-cite-prefix">On
11.01.18 11:57,
Uri Shacked wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083h5">
<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)/')<wbr>;</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="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><span class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083HOEnZb"><font color="#888888">
</font></span></pre>
<span class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083HOEnZb"><font color="#888888"> <br>
<pre class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210m_-3321043147416172083m_-3267776177982995752moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_3859299958838135348m_-2846613758281281368m_1152520431858184890m_6868117292363315210moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="m_3859299958838135348moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_3859299958838135348moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_3859299958838135348moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_3859299958838135348moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_3859299958838135348moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</div></div></div>
</blockquote></div><br></div>