Hi Richardo,just to let you know that I finally got the time to apply the patch.
thanks for the patch. Probably I am going to apply it, having the short status dumped in the syslog might be useful.
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:
sercmd> pkg.stats
{
entry: 0
pid: 36184
rank: 0
used: 214104
free: 533952
real_used: 514624
}
{
entry: 1
pid: 36185
rank: 1
used: 221984
free: 525976
real_used: 522600
}
...
If you want just for one process:
sercmd> pkg.stats pid 36184
{
entry: 0
pid: 36184
rank: 0
used: 214104
free: 533952
real_used: 514624
}
You need to load kex module, see more docs about this rpc command:
http://kamailio.org/docs/modules/devel/modules_k/kex.html#id2535580
I guess it gives you what you need.
Cheers,
Daniel
On 7/26/11 5:08 PM, Andrade Ricardo (CI/AFU1) wrote:Hi,I'd just like to say that I found the answer to my own question in the documentation:With 3.x versions, you have to load ctl and cfg_rpc modules and execute:sercmd cfg.set_now_int core mem_dump_pkg <pid>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.I've introduced a mem_summary option "16" to control that behavior.Best regards,Ricardo.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- http://www.asipto.com Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat http://linkedin.com/in/miconda -- http://twitter.com/miconda
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- http://www.asipto.com Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat http://linkedin.com/in/miconda -- http://twitter.com/miconda