<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Glad you found the issue !<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 29.01.2026 04:14, Daniel Zanutti
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAN0jgiPPaGcs-i7uVjK_hAC9SvZpgyeY6eG2SJ9ZLf3hP2tTzA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Bogdan
<div><br>
</div>
<div>You were right, found out the problem was a customization
we did in a module. </div>
<div>Didn't know that get_dlg_by_ids function adds a ref
internally so the dialog is never released. The problem is
that this customization is not called on every call, so leak
didn't happen very often. Now we are calling dlg_unref
properly.</div>
<div><br>
</div>
<div><img src="cid:part1.O8v4Ao0E.2eXq6DVE@opensips.org"
alt="image.png" class="" width="562" height="205"><br>
</div>
<div><br>
</div>
<div>Thanks for helping out! </div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">On Tue, Jan 27, 2026 at
6:49 AM Bogdan-Andrei Iancu <<a
href="mailto:bogdan@opensips.org" moz-do-not-send="true"
class="moz-txt-link-freetext">bogdan@opensips.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> <font face="monospace">Hi Daniel,<br>
<br>
The dump shows you have ~29K dialogs in memory....maybe
your billing module is messing up with the dialogs?<br>
<br>
Regards,<br>
</font>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.opensips-solutions.com</a>
<a href="https://www.siphub.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.siphub.com</a></pre>
<div>On 27.01.2026 04:50, Daniel Zanutti wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Bogdan
<div><br>
</div>
<div>Took some time but I got the log. Could you please
take a look?</div>
<div><br>
</div>
<div><a href="https://pastebin.com/mBGmpjfY"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://pastebin.com/mBGmpjfY</a></div>
<div><br>
</div>
<div>Thanks</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jan 23, 2026
at 9:31 AM Bogdan-Andrei Iancu <<a
href="mailto:bogdan@opensips.org" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">bogdan@opensips.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> <font face="monospace">Hi Daniel.<br>
<br>
See <a
href="https://opensips.org/Documentation/TroubleShooting-OutOfMem"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://opensips.org/Documentation/TroubleShooting-OutOfMem</a>
on how to do proper mem dumping. List again the
output please.<br>
<br>
Regards,<br>
</font>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.opensips-solutions.com</a>
<a href="https://www.siphub.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.siphub.com</a></pre>
<div>On 23.01.2026 03:10, Daniel Zanutti wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<p><font face="arial, sans-serif">Hi,</font></p>
<p><font face="arial, sans-serif">I'm facing a
shared memory leak on OpenSIPS 3.4.16. SHM
is set to 2 GB, and its usage keeps
increasing over time until the process
crashes. This usually happens after 1–2 days
of uptime.</font></p>
<p><font face="arial, sans-serif">I do have a
custom billing module, originally developed
for OpenSIPS 1.11.x and later ported to
3.4.x. While the module is a suspect, I'm
also trying to rule out other possible
causes in the core or standard modules.</font></p>
<p><font face="arial, sans-serif">I generated
the following <code>mem_shm_dump</code>
after 24 hours of traffic, at a moment with
no active calls:</font><br>
<a rel="noopener"
href="https://pastebin.com/QUmVJ1BH"
target="_blank" moz-do-not-send="true">https://pastebin.com/QUmVJ1BH<span
aria-hidden="true"></span></a></p>
<p>Any hints or suggestions on how to further
investigate this would be greatly appreciated.</p>
<div>
<div><br>
</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Devel mailing list
<a href="mailto:Devel@lists.opensips.org" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">Devel@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>