<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 18.07.18 06:41, Sergey Safarov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHtxdDeQQNS+m+zLP2h2SS3pnqFViRewja8K5UTSKyhnoYEQeQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">One my server with perl external script time to
        time is stopping processing SIP messages. Perl script make calls
        to kamailio database on mysql.<br>
        <br>
        I have found this in logs<br>
        <p class="inbox-inbox-p1"><font face="monospace"><span
              class="inbox-inbox-s1">DEBUG: <core>
              [core/io_wait.h:380]: io_watch_add(): DBG:
              io_watch_add(0x56427eb40c40, 495, 2, 0x7f1a9f9ba408),
              fd_no=33<br>
            </span>DEBUG: <core> [core/io_wait.h:602]:
            io_watch_del(): DBG: io_watch_del (0x56427eb40c40, 495, -1,
            0x0) fd_no=34 called<br>
            DEBUG: <core> [core/tcp_main.c:4196]:
            handle_tcpconn_ev(): sending to child, events 1<br>
            DEBUG: <core> [core/tcp_main.c:3871]: send2child():
            WARNING: no free tcp receiver, connection passed to the
            least busy one (56)<br>
            DEBUG: <core> [core/tcp_main.c:3875]: send2child():
            selected tcp worker 4 20(24) for activity on [tcp:<a
              href="http://0.0.0.0:81" moz-do-not-send="true">0.0.0.0:81</a>],
            0x7f1a9f9ba408</font></p>
        <p class="inbox-inbox-p1"><span class="inbox-inbox-s1">And no
            next messages.</span></p>
        <p class="inbox-inbox-p1"><span class="inbox-inbox-s1">How get
            info what is load on "tcp receiver". This host in dev mode
            and handles not more 5 devices.<br>
          </span><br>
        </p>
      </div>
    </blockquote>
    this messages are printed when all tcp workers are assigned to
    handle traffic on a tcp connection. They are harmless if there is a
    lot of traffic on many tcp connections, but if you say the traffic
    is low, then the tcp workers are blocked in some operations, likely
    the database query.<br>
    <br>
    You can use benchmark module or play with latency* core parameters
    in order to detect what action in config takes very long time to
    execute.<br>
    <br>
    You can also increase the value for tcp_children global parameter.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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 World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>