<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just a comment.<div><br></div><div>As a 'rookie' SER user I am impressed with your knowledge and problem solving skills.</div><div><br></div><div>Great work gentlemen!</div><div><br></div><div><br></div><div>Jeff</div><div><br><div><div>On 2010-09-23, at 2:01 PM, Santiago Soares wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">It worked!<br>It was the pcre_match that was consuming all the memory available.<br>Kamailio has been running for more than 24 hours, and memory comsumption is not increasing.<br>Thank you very much!<br><br clear="all">Santiago Soares<br>

Fone: (41) 8488-0537<br>
<br><br><div class="gmail_quote">On Wed, Sep 22, 2010 at 12:21 PM, marius zbihlei <span dir="ltr">&lt;<a href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div></div><div class="h5">On 09/22/2010 06:08 PM, Klaus Darilion wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Am 22.09.2010 15:31, schrieb Santiago Soares:<br>
 &nbsp; <br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thank's for the answers.<br>
Based on your explanation, I think that the problem is an external library.<br>
The kamailio process is taking all the system memory.<br>
When the system runs out of memory, it kills kamailio.<br>
But how can I find out what is the library?<br>
 &nbsp; &nbsp; <br>
</blockquote>
This means that either the library is buggy, or the library is used<br>
wrongly (e.g. not releasing buffers ...). Let's take a look at your modules:<br>
<br>
loadmodule "maxfwd.so"<br>
loadmodule "exec.so"<br>
loadmodule "tm.so"<br>
loadmodule "sl.so"<br>
loadmodule "dispatcher.so"<br>
loadmodule "textops.so"<br>
loadmodule "xlog.so"<br>
loadmodule "mi_fifo.so"<br>
loadmodule "pv.so"<br>
<br>
I think they do not use any external libraries<br>
<br>
loadmodule "regex.so"<br>
<br>
This one uses libpcre. Maybe there is a problem with the regular<br>
expressions?<br>
<br>
 &nbsp; <br>
</blockquote>
<br></div></div>
Hello<br>
I have some suggestions<div class="im"><br>
<br>
 &nbsp; &nbsp;# excessively long display name<br>
 &nbsp; &nbsp; &nbsp; &nbsp;if (!pcre_match("$fn","^.{0,62}$$")) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("403", "Forbidden - Display Name Max Size Exceeded");<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;};<br>
<br>
<br></div>
this will be much better handled by a transformation<br>
<br>
if ( $(fn{s.len}) &gt; 62 ) {...}<br>
<br>
Make this change and see if you still have problems with OOM Killer<br>
<br>
Marius<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
regards<br>
Klaus<div class="im"><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
 &nbsp; <br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br>
_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br></div></body></html>