Just a comment. As a 'rookie' SER user I am impressed with your knowledge and problem solving skills.
Great work gentlemen! Jeff On 2010-09-23, at 2:01 PM, Santiago Soares wrote: > It worked! > It was the pcre_match that was consuming all the memory available. > Kamailio has been running for more than 24 hours, and memory comsumption is > not increasing. > Thank you very much! > > Santiago Soares > Fone: (41) 8488-0537 > > > On Wed, Sep 22, 2010 at 12:21 PM, marius zbihlei <marius.zbih...@1and1.ro> > wrote: > On 09/22/2010 06:08 PM, Klaus Darilion wrote: > > Am 22.09.2010 15:31, schrieb Santiago Soares: > > Thank's for the answers. > Based on your explanation, I think that the problem is an external library. > The kamailio process is taking all the system memory. > When the system runs out of memory, it kills kamailio. > But how can I find out what is the library? > > This means that either the library is buggy, or the library is used > wrongly (e.g. not releasing buffers ...). Let's take a look at your modules: > > loadmodule "maxfwd.so" > loadmodule "exec.so" > loadmodule "tm.so" > loadmodule "sl.so" > loadmodule "dispatcher.so" > loadmodule "textops.so" > loadmodule "xlog.so" > loadmodule "mi_fifo.so" > loadmodule "pv.so" > > I think they do not use any external libraries > > loadmodule "regex.so" > > This one uses libpcre. Maybe there is a problem with the regular > expressions? > > > > Hello > I have some suggestions > > > # excessively long display name > if (!pcre_match("$fn","^.{0,62}$$")) { > sl_send_reply("403", "Forbidden - Display Name Max Size > Exceeded"); > exit; > }; > > > this will be much better handled by a transformation > > if ( $(fn{s.len}) > 62 ) {...} > > Make this change and see if you still have problems with OOM Killer > > Marius > > regards > Klaus > > > _______________________________________________ > 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 > > > > > _______________________________________________ > 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 > > _______________________________________________ > 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
_______________________________________________ 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