<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">I had a Kamailio crash the other day, and some debugging showed I ran out of PKG memory.</div><div class=""><br class=""></div><div class="">Since then I’ve run a simple bash script to compile the amount of memory used by all child processes, effective /usr/local/sbin/kamcmd pkg.stats | grep real_used summed together. I’ve graphed out the data, and there’s a clear growth of PKG memory going on, mostly increasing during our busier daytime hours.</div><div class=""><br class=""></div><div class=""><a href="https://i.imgur.com/UTzx2k1.png" class="">https://i.imgur.com/UTzx2k1.png</a></div><div class=""><br class=""></div><div class="">Based on this, I suspect either a module loaded or something within my app_ruby conf is leaking memory.</div><div class=""><br class=""></div><div class="">I’ve been reading through <a href="https://www.kamailio.org/wiki/tutorials/troubleshooting/memory" class="">https://www.kamailio.org/wiki/tutorials/troubleshooting/memory</a>, but I’m a bit nervous, as I’m not really a C/deep memory type of guy. I can see a GDB script I can attach to Kamailio, but is that going to use significant resources to run or impact the running process? Is there a newer/better/alternative way to do this, and to help me break this down?</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">Andrew</div></div></body></html>