<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=FR link="#0563C1" vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>Hi All,</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>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 lang=EN-US style='font-size:11.0pt;mso-fareast-language:FR'>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 lang=EN-US style='font-size:11.0pt'>We already increased</span><span lang=EN-US> </span><span lang=EN-US style='font-size:11.0pt'>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 lang=EN-US style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>root@lbsip-owf-out02  /var/log  opensips -V</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>version: opensips 3.1.1 (x86_64/linux)</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>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 lang=EN-US style='font-size:11.0pt'>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 lang=EN-US style='font-size:11.0pt'>poll method support: poll, epoll, sigio_rt, select.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>git revision: 229ec0793</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>main.c compiled on 17:41:56 Jan  4 2021 with gcc 6.3.0</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>root@lbsip-owf-out02  /var/log  cat /etc/default/opensips </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>RUN_OPENSIPS=yes</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>USER=opensips</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>GROUP=opensips</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>S_MEMORY=3072</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>P_MEMORY=128</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>DUMP_CORE=yes</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>OPTIONS="-a Q_MALLOC_DBG"</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>I followed the following guide to activate the memory dump : <a href="https://opensips.org/Documentation/TroubleShooting-OutOfMem">https://opensips.org/Documentation/TroubleShooting-OutOfMem</a></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>As I am unable to analyze the memory dump myself, find here the link to download the logs (when the proxy stops) : </span><a href="https://www.maniterm.com/public/html/memory_dump.log.zip">https://www.maniterm.com/public/html/memory_dump.log.zip</a><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>Tell me if you need more information’s ?</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>Many thanks</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt'>Alain</span><o:p></o:p></p></div></body></html>