<div dir="ltr">Hello!<div><br></div><div>If possible, please check log:</div><div><a href="https://github.com/denyspozniak/opensips_tls_debug/blob/main/gdb_opensips_20240508_115956">https://github.com/denyspozniak/opensips_tls_debug/blob/main/gdb_opensips_20240508_115956</a><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 8 мая 2024 г. в 08:55, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <font face="monospace">Hi Denys.<br>
      <br>
      That is rather weird, 250 certificates in 1 min. I assume it is
      not a DB issue (considering the db_text backend), so can you try
      to do multiple sequential "opensips-cli -x trap" to try to
      understand what is going on ?<br>
      <br>
      Regards,<br>
    </font>
    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
  <a href="https://www.siphub.com" target="_blank">https://www.siphub.com</a></pre>
    <div>On 02.05.2024 11:41, Denys Pozniak
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hello!
        <div><br>
        </div>
        There is a task to divide a single tls/ssl letsencrypt
        certificate for white labels into specific ones.
        <div>I entered about ~250 certificates into db_text, but as it
          turned out, for OpenSIPS this is a rather complex operation to
          load them and takes about 1 minute and a heavy CPU load is
          noticeable.
          <div><br>
          </div>
          <div>I would appreciate any advice on how to avoid this.<br>
          </div>
          <div><br>
          </div>
          <div># wc -l dbtext/tls_mgm<br>
            253 dbtext/tls_mgm<br>
          </div>
          <div><br>
          </div>
          <div># time opensips-cli -x mi tls_reload
            <div>"OK"</div>
            <div>real 0m52.034s</div>
            <div>user 0m1.419s</div>
            <div>sys 0m0.433s</div>
            <div><br>
            </div>
            <div># time systemctl restart opensips<br>
              real    0m58.198s<br>
              user    0m0.024s<br>
              sys     0m0.055s<br>
              <div><span class="gmail_signature_prefix"><br>
                </span></div>
              <div><span class="gmail_signature_prefix"># opensips -V<br>
                  version: opensips 3.4.4 (x86_64/linux)<br>
                  flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
                  PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC,
                  FAST_LOCK-ADAPTIVE_WAIT<br>
                  ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
                  MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
                  poll method support: poll, epoll, sigio_rt, select.<br>
                  git revision: 036d02961<br>
                </span></div>
              <div><span class="gmail_signature_prefix"><br>
                </span></div>
              <div><span class="gmail_signature_prefix">-- </span><br>
                <div dir="ltr" class="gmail_signature">
                  <div dir="ltr"><br>
                    <div>
                      <div>BR,</div>
                      <div>Denys Pozniak<br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>