<div dir="ltr">Hi Bogdan,<div><br></div><div>I didn&#39;t do the SIGUSER1 test, instead I checked at time of shutdown. At the end huge log is generated and I don&#39;t know if all of that is unfreed memory.</div><div>You may wish to look at the log <a href="http://pastebin.com/M9tmXk5F">http://pastebin.com/M9tmXk5F</a>. This is not complete log as complete one was very huge and I couldn&#39;t post it therefore removed some from middle. </div><div><br></div><div>Below are few lines from the log:</div><div><ol style="color:rgb(204,204,204);margin:0px;padding:0px 0px 0px 55px;font-family:Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,monospace,serif;font-size:12px;line-height:24px;background:rgb(247,247,247)"><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25420]:   423. N  address=0x7febb9c15a18 frag=0x7febb9c159e8 size=128 used=1</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25420]:     428. N  address=0x7febb9c20870 frag=0x7febb9c20840 size=25216 used=1</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:             alloc&#39;d from pvar.c: pv_parse_format(3782)</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25420]:             alloc&#39;d from io_wait.c: init_io_wait(609)</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:         start check=f0f0f0f0, end check= c0c0c0c0, abcdefed</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25420]:         start check=f0f0f0f0, end check= c0c0c0c0, abcdefed</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:     424. N  address=0x7febb9c15af8 frag=0x7febb9c15ac8 size=128 used=1</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25420]: dumping free list stats :</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:             alloc&#39;d from pvar.c: pv_parse_format(3782)</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background:rgb(248,248,248)">Oct  9 13:40:21 [25420]: hash= 261. fragments no.:     1, unused:     0#012#011#011 bucket size:      2088 -      2088 (first      2088)</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:         start check=f0f0f0f0, end check= c0c0c0c0, abcdefed</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:     426. N  address=0x7febb9c16460 frag=0x7febb9c16430 size=8192 used=1</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25420]: hash= 2056. fragments no.:     1, unused:     0#012#011#011 bucket size:   2097152 -   4194304 (first   3814544)</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:             alloc&#39;d from mi_writer.c: mi_writer_init(51)</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:         start check=f0f0f0f0, end check= c0c0c0c0, abcdefed</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:     427. N  address=0x7febb9c184c0 frag=0x7febb9c18490 size=33616 used=1</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:             alloc&#39;d from io_wait.c: init_io_wait(560)</div></li><li class="" style="background:rgb(255,255,255)"><div class="" style="padding:0px 8px;vertical-align:top;color:rgb(51,51,51);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-image:initial;background-repeat:initial">Oct  9 13:40:21 [25428]:         start check=f0f0f0f0, end check= c0c0c0c0, abcdefed</div></li></ol></div><div><br></div><div>Does all those line numbers represent the unfreed memory?</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Thanks,</div>Surya<br></div></div></div>
<br><div class="gmail_quote">On 11 January 2016 at 04:36, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Surya,<br>
<br>
Even for checking if all the memory was properly release, you still have to use the Memory debugger - have you managed to get the memory dump on SIGUSR1 (as per example in the page I pointed)? if so, such a dump simply contains a list of all allocated memory chunks - size and where from code they were allocated from.<br>
<br>
Best regards,<br>
<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Founder and Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
On 09.01.2016 10:24, surya wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Bogdan,<br>
<br>
I checked the method mentioned on the link but really, I am unable to<br>
understand anything generated from the log.<br>
<br>
Now, my problem is not out of memory. I just want to check if there are some<br>
memory which is not *freed*.<br>
<br>
Is there a way I can run opensips with Valgrind, because I am bit<br>
comfortable with it and help is also easily available.<br>
<br>
I am not expert in Unix or OS therefore finding it difficult to understand<br>
the logs.<br>
Hope you understand.<br>
<br>
Thanks,<br>
Surya<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Opensips-presence-server-How-to-check-for-Out-Of-Memory-errors-tp7599129p7600541.html" rel="noreferrer" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Opensips-presence-server-How-to-check-for-Out-Of-Memory-errors-tp7599129p7600541.html</a><br>
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</font></span></blockquote>
<br>
</blockquote></div><br></div></div>