<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Richardo,<br>
<br>
thanks for the patch. Probably I am going to apply it, having the
short status dumped in the syslog might be useful.<br>
<br>
I am saying that because starting with this current devel version,
you can get the statistics for pkg memory via RPC commands, for
example, using sercmd:<br>
<br>
sercmd> pkg.stats<br>
{<br>
entry: 0<br>
pid: 36184<br>
rank: 0<br>
used: 214104<br>
free: 533952<br>
real_used: 514624<br>
}<br>
{<br>
entry: 1<br>
pid: 36185<br>
rank: 1<br>
used: 221984<br>
free: 525976<br>
real_used: 522600<br>
}<br>
...<br>
<br>
If you want just for one process:<br>
<br>
sercmd> pkg.stats pid 36184<br>
{<br>
entry: 0<br>
pid: 36184<br>
rank: 0<br>
used: 214104<br>
free: 533952<br>
real_used: 514624<br>
}<br>
<br>
You need to load kex module, see more docs about this rpc command:<br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/devel/modules_k/kex.html#id2535580">http://kamailio.org/docs/modules/devel/modules_k/kex.html#id2535580</a><br>
<br>
I guess it gives you what you need.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
On 7/26/11 5:08 PM, Andrade Ricardo (CI/AFU1) wrote:
<blockquote
cite="mid:268C7AED54EDF64F808B167324D2CBF91A08D2C647@SI-MBX18.de.bosch.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<font face="Arial, sans-serif" size="2">
<div>Hi,</div>
<div> </div>
<div>I'd just like to say that I found the answer to my own
question in the documentation:</div>
<div> </div>
<div><font face="Arial, sans-serif" size="3">With 3.x versions,
you have to load ctl and cfg_rpc modules and execute: </font></div>
<div><font face="Arial, sans-serif" size="3"> </font></div>
<div><font face="Courier New, monospace">sercmd cfg.set_now_int
core mem_dump_pkg <pid></font></div>
<div><font face="Courier New, monospace"> </font></div>
<div><a moz-do-not-send="true"
href="http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:memory"><font
color="#0000FF"><u>http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:memory</u></font></a></div>
<div><font face="Arial, sans-serif" size="3"> </font></div>
<div>I did also write a patch to suppress the full memory dump,
because I am only interested in the first lines of the status
(total usage). This way I the server doesn't get blocked -
full memory dump usually takes a VERY long time. Patch is
attached and I'd
be glad if something similar would be integrated in the trunk.</div>
<div> </div>
<div>I've introduced a mem_summary option "16" to control that
behavior.</div>
<div> </div>
<div>Best regards,</div>
<div>Ricardo.</div>
<div> </div>
<div> </div>
</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></pre>
</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>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>