<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<font face="monospace">Hi Arto,<br>
<br>
Thanks for the report here. So, the 3.2.7 suffers of a mem leak
which DOES NOT exist in 3.1.1, mainly this <br>
</font><br>
<font face="monospace"> 109600 : 4858 x [dlg_vals.c:
fetch_dlg_value, line 176]<br>
<br>
right ?<br>
<br>
Best 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>
OpenSIPS Summit 27-30 Sept 2022, Athens
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2022Athens/">https://www.opensips.org/events/Summit-2022Athens/</a></pre>
<div class="moz-cite-prefix">On 10/5/22 10:16 AM, Arto Kuiri wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AS8P191MB14134A71F4D26B4F219CAD649E5D9@AS8P191MB1413.EURP191.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
ContentPasted0">
Hi,
<div><br class="ContentPasted0">
</div>
<div class="ContentPasted0">I think I have stumbled to some kind
of memory leak. I made new opensips server used same
opensips.cfg (changed only ip address) as in my older servers
and after some time I started to get these to log file:</div>
<div><br class="ContentPasted0">
</div>
<div class="ContentPasted0">/usr/sbin/opensips[1145854]:
ERROR:core:fm_malloc: not enough free pkg memory (2312 bytes
left, need 2472), please increase the "-M" command line
parameter!</div>
<div class="ContentPasted0">/usr/sbin/opensips[1145854]:
ERROR:core:receive_msg: no pkg mem left for sip_msg</div>
<div><br class="ContentPasted0">
</div>
<div class="ContentPasted0">Older servers works fine with much
higher load. Old servers are with opensips 3.1.1 and new
server is 3.2.7 :</div>
<div><br class="ContentPasted0">
</div>
<div class="ContentPasted0">opensips -V</div>
<div class="ContentPasted0">version: opensips 3.1.1
(x86_64/linux)</div>
<div class="ContentPasted0">flags: STATS: On, DISABLE_NAGLE,
USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</div>
<div class="ContentPasted0">ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024,
BUF_SIZE 65535</div>
<div class="ContentPasted0">poll method support: poll, epoll,
sigio_rt, select.</div>
<div class="ContentPasted0">main.c compiled on with gcc 9</div>
<div><br class="ContentPasted0">
</div>
<div class="ContentPasted0">opensips -V</div>
<div class="ContentPasted0">version: opensips 3.2.7
(x86_64/linux)</div>
<div class="ContentPasted0">flags: STATS: On, DISABLE_NAGLE,
USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</div>
<div class="ContentPasted0">ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024,
BUF_SIZE 65535</div>
<div class="ContentPasted0">poll method support: poll, epoll,
sigio_rt, select.</div>
<div class="ContentPasted0">main.c compiled on with gcc 11</div>
<div><br class="ContentPasted0">
</div>
<div class="ContentPasted0">I allocated more memory and changed
private memory allocator to F_MALLOC_DBG</div>
<div><br class="ContentPasted0">
</div>
<div class="ContentPasted0">After while I checked what process
had highest memory useage and I did:</div>
<div class="ContentPasted0">opensips-cli -x mi mem_pkg_dump
<pid></div>
<div class="ContentPasted1">(PID was "SIP receiver udp")</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>