<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 28.01.2021 15:12, Alain Bieuzent
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:342D82DE-6CB5-4838-BBF6-54987F846E32@free.fr">
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Since
          we migrate from opensips 3,0 to the latest 3.1, after around 1
          week of uptime we find a a certain number of message in logs
          (around 15,000 per day) like « </span><span
          style="font-size:11.0pt;mso-fareast-language:FR" lang="EN-US">ERROR:core:fm_malloc:
          not enough free pkg memory (11184320 bytes left, need 536),
          please increase the "-M" command line parameter! »</span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">We
          already increased</span><span lang="EN-US"> </span><span
          style="font-size:11.0pt" lang="EN-US">P_MEMORY (from 16 to 32
          then 32 to 128) but it didn’t help.</span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"> </span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">root@lbsip-owf-out02 
          /var/log  opensips -V</span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">version:
          opensips 3.1.1 (x86_64/linux)</span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">flags:
          STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
          Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC,
          FAST_LOCK-ADAPTIVE_WAIT</span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">ADAPTIVE_WAIT_LOOPS=1024,
          MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024,
          BUF_SIZE 65535</span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">poll
          method support: poll, epoll, sigio_rt, select.</span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">git
          revision: 229ec0793</span><o:p></o:p></p>
      <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">main.c
          compiled on 17:41:56 Jan  4 2021 with gcc 6.3.0</span></p>
    </blockquote>
    <p><tt>Hi,</tt></p>
    <p><tt>There was a significant PKG memory leak fixed on Jan 11th
        [1], which was related to t_on_branch().  If you are using
        t_on_branch() in your opensips.cfg, please get the latest 3.1.1
        sources, rebuild and your problems should go away.  For this, I
        suggest either:</tt></p>
    <p><tt>* installing the 3.1 nightly packages<br>
        * fetching the 3.1 sources and rebuilding<br>
        * wait for the 3.1.2 minor release<br>
      </tt></p>
    <p><tt>[1]: <a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/c82a625e">https://github.com/OpenSIPS/opensips/commit/c82a625e</a><br>
      </tt></p>
    <p><tt>Cheers,</tt><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
  </body>
</html>