<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    If you get the shm used size increasing, run following commands:<br>
    <br>
    kamcmd cfg.set_now_int core memlog 1<br>
    kamcmd corex.shm_summary<br>
    <br>
    Do it after some time of running, when you see that the increase has
    happened.<br>
    <br>
    Then take the logs from syslog related to shm summary and send them
    over here.<br>
    <br>
    On the other hand, I saw recently some article about latency spikes
    for tcp:<br>
    <br>
      - <a class="moz-txt-link-freetext" href="https://http2.cloudflare.com/the-story-of-one-latency-spike/">https://http2.cloudflare.com/the-story-of-one-latency-spike/</a><br>
    <br>
    It is about http, but actually relates to tcp setting of os. Maybe
    you can verify your values in OS.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 20/11/15 12:40, Thibault Gueslin
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKYUgjDPE9RCAgdApnJmewWuo6htEQDKT5TE5SyFN4hYGzkEqQ@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span style="font-size:13px">I am adding the info
          in a mqueue.</span>
        <div style="font-size:13px">In a single rtimer, I am consuming
          the mqueue and calling a lua script.</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">(I have followed the example of
          twitter).</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">I have increase the number of
          tcp_children and I got issue for memory allocation on
          allocations new tcp connection after a few hours.</div>
        <div style="font-size:13px">Restart with SHMEM increased.</div>
        <div style="font-size:13px">(but <font face="Menlo"><span
              style="font-size:11px">shame:used_size seems to increase)</span></font></div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">Regards</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-11-19 11:55 GMT+01:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Are you doing the
              http requests for all sip requests? How many rtimer
              processes do you have consuming from mqueue?<br>
              <br>
              What do you mean by "all tcp workers were busy"? They used
              lot of CPU?<br>
              <br>
              Cheers,<br>
              Daniel
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 19/11/15 01:30, Thibault Gueslin wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div>It seems to appear randomly.</div>
                    <div><br>
                    </div>
                    <div>I don't have database access (default config
                      without db)</div>
                    <div>I have a mqueue with rtimer to do asynchronous
                      http request.</div>
                    <div><br>
                    </div>
                    <div>I have seen also sometimes that all tcp worker
                      were busy even on a test server with 4 clients.</div>
                    <div><br>
                    </div>
                    <div>Regards,</div>
                    <div><br>
                    </div>
                    <div>Thibault</div>
                    <div><br>
                      <br>
                    </div>
                    <div><br>
                      <div><br>
                        <br>
                        <br>
                      </div>
                      Le 18 nov. 2015 à 13:28, Daniel-Constantin Mierla
                      <<a moz-do-not-send="true"
                        href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>

                      a écrit :<br>
                      <br>
                    </div>
                    <blockquote type="cite">
                      <div> Is it something repeating at constant
                        interval of times, or are they random? Are you
                        doing database queries in your config? Any of
                        them via rtimer module?<br>
                        <br>
                        Cheers,<br>
                        Daniel<br>
                        <br>
                        <br>
                        <div>On 18/11/15 12:00, Thibault Gueslin wrote:<br>
                        </div>
                        <blockquote type="cite">
                          <div dir="ltr">I am facing an issue with
                            kamailio 4.3.3 that is very similar to
                            <div><a moz-do-not-send="true"
href="http://lists.sip-router.org/pipermail/sr-users/2015-May/088195.html"
                                target="_blank">http://lists.sip-router.org/pipermail/sr-users/2015-May/088195.html</a><br>
                            </div>
                            <div><br>
                            </div>
                            <div>Had someone found the solution or faced
                              similar issue ?</div>
                            <div><br>
                            </div>
                            <div>Sometimes kamailio is receiving the
                              message (check with wireshark, logs in
                              tcp) but the message is not handled nor
                              relayed.</div>
                            <div>After a certain amount of time
                              everything works fine.</div>
                            <div><br>
                            </div>
                            <div>I will do what as has been advised :
                              enabling pike & check with gdb when it
                              appears.</div>
                            <div><br>
                            </div>
                            <div>thibault</div>
                            <div><br>
                            </div>
                          </div>
                          <br>
                          <fieldset></fieldset>
                          <br>
                          <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                        </blockquote>
                        <br>
                        <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a moz-do-not-send="true" href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</a></pre>
                      </div>
                    </blockquote>
                  </blockquote>
                  <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a moz-do-not-send="true" href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</a></pre>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/kat">http://asipto.com/kat</a></pre>
  </body>
</html>