<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Pete,<br>
      <br>
      Try the script_trace() function, to see if the delay comes from
      the script level. If not, it means it comes from the TCP layer
      (maybe related to the dispatching of TCP cons between workers)<br>
<a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Script-CoreFunctions-3-5#script_trace">https://www.opensips.org/Documentation/Script-CoreFunctions-3-5#script_trace</a><br>
      <br>
      BTW, what are the TCP settings for:<br>
         
<a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Script-CoreParameters-3-5#tcp_parallel_read_on_workers">https://www.opensips.org/Documentation/Script-CoreParameters-3-5#tcp_parallel_read_on_workers</a><br>
         
      <a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/3.5.x/proto_tcp.html#idp5528016">https://opensips.org/html/docs/modules/3.5.x/proto_tcp.html#idp5528016</a><br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 10.04.2025 23:42, Pete Kelly wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEWH9M_Fz6jNN0HstsGSt1F_eTr4owGsmjA99x_OKc7LsoT4iw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello all
        <div><br>
        </div>
        <div dir="ltr">I am running some OpenSIPS proxies which are
          talking to each other exclusively in TCP, however when
          performing some (mild) load tests I am seeing some strange
          behaviour from time to time, which manifests itself as what
          looks like OpenSIPS taking a long time to process SIP
          requests.</div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">The most obvious issue I am seeing (and confirmed
          by tcpdump) is when OpenSIPS receives an invite but may take
          anything from 2-8 second to even send the 100 Trying!</div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">e.g.</div>
        <div dir="ltr">
          <p class="p1">T 2025/04/10 20:28:10.257283 <a
              href="http://10.3.0.4:48665" moz-do-not-send="true">10.3.0.4:48665</a>
            -> <a href="http://10.3.0.12:5080"
              moz-do-not-send="true">10.3.0.12:5080</a> [A] #4826</p>
          <p class="p1">INVITE sip:... SIP/2.0.</p>
          <p class="p2">T 2025/04/10 20:28:12.644355 <a
              href="http://10.3.0.12:5080" moz-do-not-send="true">10.3.0.12:5080</a>
            -> <a href="http://10.3.0.4:48665"
              moz-do-not-send="true">10.3.0.4:48665</a> [AP] #4955<br>
            <span class="s1"></span></p>
          <p class="p1">SIP/2.0 100 Giving it a try.</p>
        </div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">Is there an obvious route for me to debug this
          behaviour to try and see where the bottleneck may lie ? Can I
          see somewhere if all of the tcp workers are in use for example
          and it is waiting for a worker?</div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr">Pete</div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr"><br>
        </div>
        <div dir="ltr"><br>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>