Hello Jon,<div><br></div><div>There&#39;s a guide you can follow to troubleshoot memory problems: <a href="http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:memory">http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:memory</a></div>
<div><br></div><div>Also, please check memdbg and memlog: <a href="http://kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#memdbg">http://kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#memdbg</a></div><div><br></div>
<div>Regards.</div><div><br></div><div>Carlos.<br><br><div class="gmail_quote">On Wed, Oct 31, 2012 at 8:55 AM, Jon Bonilla <span dir="ltr">&lt;<a href="mailto:manwe@aholab.ehu.es" target="_blank">manwe@aholab.ehu.es</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
I&#39;m using diferent versions of kamailio 3.3 in production environment. In 2<br>
cases I&#39;ve found what I suspect to be a mem leak in the parser.<br>
<br>
In my scenarios, there&#39;s a stateless proxy in front of a stateful one. Both<br>
run on the same machine and both handle the same traffic (except the one<br>
rejected by the sl one). So my guess is that the parser has the mem leak<br>
somewhere because the difference is the malformed messages rejected by the<br>
first proxy.<br>
<br>
Both have the same pkg and shm options.<br>
<br>
The stateless one runs out of mem. shm mem and pkg mem grow until kamailio runs<br>
out of mem. I have generated coredumps of the sl processes with kill -6 when the<br>
mem was about to run out but I can&#39;t see anything useful there.<br>
<br>
My question is, how can I debug this? Build kamailio with different flags?<br>
Increase mem verbosity? It takes several days until it runs out of mem and I&#39;d<br>
like to catch it soon.<br>
<br>
<br>
<br>
<br>
thanks,<br>
<br>
Jon<br>
<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div><br></div>