<div dir="ltr">Thanks.<div>installed OK on my test environment.</div><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_-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_-3321043147416172083h5">
    <br>
    <div class="m_-3321043147416172083m_-3267776177982995752moz-cite-prefix">On 11.01.18 11:57, Uri Shacked wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="m_-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_-3321043147416172083m_-3267776177982995752mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_-3321043147416172083m_-3267776177982995752moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_-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_-3321043147416172083HOEnZb"><font color="#888888">
</font></span></pre><span class="m_-3321043147416172083HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="m_-3321043147416172083HOEnZb"><font color="#888888">
    <br>
    <pre class="m_-3321043147416172083m_-3267776177982995752moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_-3321043147416172083m_-3267776177982995752moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-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_-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_-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>