<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>Hi Samy,</tt></p>
<p><tt>If you happen to have the code compiled with the "DBG_MALLOC"
flag and catch your OpenSIPS in this state again:</tt></p>
<p><tt>* opensipsctl fifo log_level 14 <pid which went oom><br>
* kill -SIGUSR1 <pid which went oom><br>
</tt><tt>* opensipsctl fifo log_level 3 <pid which went oom>
(restore it to whatever it had before)</tt><br>
</p>
<p><tt>This should make that process dump its memory map in the
logs, so we can tell where the leak is at.</tt></p>
<p><tt>Regards,<br>
</tt></p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 04.12.2017 22:20, SamyGo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJUJwthOmVEZ79TVwtPLdCJKOwd_tZ9A+RDbG2rMat1anQkZbA@mail.gmail.com">
<div dir="ltr">Hi,
<div><br>
<div>
<div>I'm experimenting with the clusterer module and
in-config cluster_send/receive requests. On my test
servers I start seeing the following errors. </div>
<div><font face="monospace, monospace"><br>
</font></div>
<div><font face="monospace, monospace">ERROR:core:qm_malloc:
not enough free pkg memory (784 bytes left, need 65536),
please increase the "-M" command line parameter!<br>
</font></div>
<div><font face="monospace, monospace">ERROR:core:bin_init:
No more pkg memory!<br>
</font></div>
<div><font face="monospace, monospace">ERROR:clusterer:prep_gen_msg:
Failed to init bin send buffer<br>
</font></div>
<div><font face="monospace, monospace">ERROR:clusterer:bcast_gen_msg:
Failed to build generic clusterer message</font><br>
</div>
<div><br>
</div>
<div>My opensips process has params -m 256 and -M 64 </div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace">version: opensips
2.4.0-dev (x86_64/linux)</font></div>
<div><font face="monospace, monospace">flags: STATS: On,
SHM_EXTRA_STATS, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
PKG_MALLOC, QM_MALLOC, DBG_MALLOC,
FAST_LOCK-ADAPTIVE_WAIT</font></div>
<div><font face="monospace, monospace">ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535</font></div>
<div><font face="monospace, monospace">poll method
support: poll, epoll_lt, epoll_et, sigio_rt, select.</font></div>
<div><font face="monospace, monospace">git revision:
d1a4419</font></div>
<div><font face="monospace, monospace">main.c compiled on
20:42:11 Nov 28 2017 with gcc 4.8</font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>No load on server, no registrations or calls except
some scanners trying the code and within couple of days
the above errors shows up. There is some memory leak. </div>
<div><br>
</div>
<div>Kindly help on understanding why this is happening.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Sammy</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
</body>
</html>