<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
send SIGUSR1 to one of the worker processes (e.g., UDP listener).
The main process of kamailio doesn't process SIP messages, so it is
not exposed to leaks.<br>
<br>
You can used 'kamcmd pkg.stats" to see statistics about usage of
pkg per each process (older versions have sercmd). <br>
<br>
'kamctl ps' gives the list of processes.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 10/1/13 2:35 PM, David Cunningham
wrote:<br>
</div>
<blockquote
cite="mid:CAHGbP-8uRsNsbhy-NXEh=v5FC7nM4W1vPKCr+dMkdw0Cx_bPug@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hi Daniel,<br>
<br>
</div>
What I copied and pasted is all that's listed when I do a kill
-SIGUSR1 on the Kamailio master process. How do I get fuller
logs?<br>
<br>
</div>
Thanks for your help.<br>
<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 1 October 2013 21:57,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
you gave only the first part of memory log output. The
chunks listed there are from startup, thus not part of a
leak, because they are not allocated again at runtime.<br>
<br>
Can you give the full logs with messages from qm_status? The
leaks are typically listed towards the end of those
messages.<br>
<br>
Yesterday someone else reported a potential leak when using
perl module, so it might be something else there. I found
one, which is related to an error case, but perhaps you
don't get that, otherwise you will notice the error message.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
On 10/1/13 12:03 PM, David Cunningham wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Following up on this after a long break. It seems we
are still having a memory leak. We've added the memory
debugging options as per the documentation with the
following output.<br>
I'm not sure how to read it though - can anyone help?
Thank you.<br>
<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: <core> [main.c:754]: Memory status
(pkg):<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: (0x4019b008):<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: heap size= 4194304<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: used= 191100, used+overhead=462800,
free=3731504<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: max used (+overhead)= 480224<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: dumping all alloc'ed. fragments:<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 0. N address=0x401cf414
frag=0x401cf3fc size=512 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: str_hash.h: str_hash_alloc(69)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 1. N address=0x401cf644
frag=0x401cf62c size=128 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: str_hash.h: str_hash_alloc(69)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 2. N address=0x401cf6f4
frag=0x401cf6dc size=256 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: counters.c: cnt_hash_add(331)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 3. N address=0x401cf824
frag=0x401cf80c size=64 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: counters.c: init_counters(121)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 4. N address=0x401cf894
frag=0x401cf87c size=8 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: route.c: init_rlist(180)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 5. N address=0x401cf8cc
frag=0x401cf8b4 size=64 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: str_hash.h: str_hash_alloc(69)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 6. N address=0x401cf93c
frag=0x401cf924 size=24 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: route.c: route_add(159)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 7. N address=0x401cf984
frag=0x401cf96c size=8 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: route.c: init_rlist(180)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 8. N address=0x401cf9bc
frag=0x401cf9a4 size=64 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: str_hash.h: str_hash_alloc(69)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 9. N address=0x401cfa2c
frag=0x401cfa14 size=24 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: route.c: route_add(159)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 10. N address=0x401cfa74
frag=0x401cfa5c size=8 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: db_id.c: dupl_string(50)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 11. N address=0x401cfaac
frag=0x401cfa94 size=64 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: str_hash.h: str_hash_alloc(69)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 12. N address=0x401cfb1c
frag=0x401cfb04 size=24 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: route.c: route_add(159)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 13. N address=0x401cfb64
frag=0x401cfb4c size=8 used=1<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: alloc'd from
<core>: route.c: init_rlist(180)<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: start check=f0f0f0f0, end
check= c0c0c0c0, abcdefed<br>
Oct 1 05:58:48 sip0-test /sbin/kamailio[14570]:
NOTICE: qm_status: 14. N address=0x401cfb9c
frag=0x401cfb84 size=64 used=1<br>
<br>
<br>
</blockquote>
<br>
</div>
</div>
<div class="im">
-- <br>
Daniel-Constantin Mierla - <a moz-do-not-send="true"
href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a moz-do-not-send="true"
href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a>
- <a moz-do-not-send="true"
href="http://www.linkedin.com/in/miconda"
target="_blank">http://www.linkedin.com/in/miconda</a><br>
</div>
Kamailio Advanced Trainings - Berlin, Nov 25-28; Miami, Nov
18-20, 2013<br>
- more details about Kamailio trainings at <a
moz-do-not-send="true" href="http://www.asipto.com"
target="_blank">http://www.asipto.com</a> -<br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
David Cunningham, Voisonics<br>
<a moz-do-not-send="true" href="http://voisonics.com/"
target="_blank">http://voisonics.com/</a><br>
USA: +1 213 221 1092<br>
UK: +44 (0) 20 3298 1642<br>
Australia: +61 (0) 2 8063 9019<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Trainings - Berlin, Nov 25-28; Miami, Nov 18-20, 2013
- more details about Kamailio trainings at <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> -
</pre>
</body>
</html>