<div dir="ltr">Thanks you Daniel<br>We removed perl code calls from kamailio configs and issue is resolved.<div>Very help full your suggestion.<br><br>Sergey </div></div><br><div class="gmail_quote"><div dir="ltr">ср, 18 июл. 2018 г. в 14:37, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>:<br></div><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,<br>
    </p></div><div text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="m_-3166355418846103555moz-cite-prefix">On 18.07.18 06:41, Sergey Safarov
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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="m_-3166355418846103555inbox-inbox-p1"><font face="monospace"><span class="m_-3166355418846103555inbox-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" target="_blank">0.0.0.0:81</a>],
            0x7f1a9f9ba408</font></p>
        <p class="m_-3166355418846103555inbox-inbox-p1"><span class="m_-3166355418846103555inbox-inbox-s1">And no
            next messages.</span></p>
        <p class="m_-3166355418846103555inbox-inbox-p1"><span class="m_-3166355418846103555inbox-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></div><div text="#000000" bgcolor="#FFFFFF">
    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</div><div text="#000000" bgcolor="#FFFFFF"><br>
    <pre class="m_-3166355418846103555moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="m_-3166355418846103555moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="m_-3166355418846103555moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-3166355418846103555moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="m_-3166355418846103555moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </div></blockquote></div>