<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 8/1/11 12:44 PM, Daniel-Constantin Mierla wrote:
    <blockquote cite="mid:4E368382.7070408@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      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>
    </blockquote>
    just to let you know that I finally got the time to apply the patch.<br>
    <br>
    Thanks,<br>
    Daniel<br>
    <br>
    <blockquote cite="mid:4E368382.7070408@gmail.com" type="cite"> <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&gt; pkg.stats<br>
      {<br>
      &nbsp;&nbsp;&nbsp; entry: 0<br>
      &nbsp;&nbsp;&nbsp; pid: 36184<br>
      &nbsp;&nbsp;&nbsp; rank: 0<br>
      &nbsp;&nbsp;&nbsp; used: 214104<br>
      &nbsp;&nbsp;&nbsp; free: 533952<br>
      &nbsp;&nbsp;&nbsp; real_used: 514624<br>
      }<br>
      {<br>
      &nbsp;&nbsp;&nbsp; entry: 1<br>
      &nbsp;&nbsp;&nbsp; pid: 36185<br>
      &nbsp;&nbsp;&nbsp; rank: 1<br>
      &nbsp;&nbsp;&nbsp; used: 221984<br>
      &nbsp;&nbsp;&nbsp; free: 525976<br>
      &nbsp;&nbsp;&nbsp; real_used: 522600<br>
      }<br>
      ...<br>
      <br>
      If you want just for one process:<br>
      <br>
      sercmd&gt; pkg.stats pid 36184<br>
      {<br>
      &nbsp;&nbsp;&nbsp; entry: 0<br>
      &nbsp;&nbsp;&nbsp; pid: 36184<br>
      &nbsp;&nbsp;&nbsp; rank: 0<br>
      &nbsp;&nbsp;&nbsp; used: 214104<br>
      &nbsp;&nbsp;&nbsp; free: 533952<br>
      &nbsp;&nbsp;&nbsp; real_used: 514624<br>
      }<br>
      <br>
      You need to load kex module, see more docs about this rpc command:<br>
      <a moz-do-not-send="true" 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>&nbsp;</div>
          <div>I'd just like to say that I found the answer to my own
            question in the documentation:</div>
          <div>&nbsp;</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">&nbsp;</font></div>
          <div><font face="Courier New, monospace">sercmd
              cfg.set_now_int core mem_dump_pkg &lt;pid&gt;</font></div>
          <div><font face="Courier New, monospace">&nbsp;</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">&nbsp;</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>&nbsp;</div>
          <div>Best regards,</div>
          <div>Ricardo.</div>
          <div>&nbsp;</div>
          <div>&nbsp;</div>
        </font> <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
      <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>