[SR-Users] PKG memory leak in 4.2.6

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 2 09:22:01 CET 2015


Hello,

are you using subst_hf() function?

There was a leak fixed for it, apparently pushed only to 4.3 branch
(commit e827ccf957a341b7026b06f17686da7fcc426fc2).

Cheers,
Daniel

On 02/12/15 09:01, Julia Boudniatsky wrote:
> Hello Daniel,
>
> Please find the attached new pkg summary log file at runtime.
> Memory leak ~ 5M .
>
> Thank you,
>
> Julia
>
> On Thu, Nov 12, 2015 at 10:08 AM, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>     ok -- one more note, if you need to lower the memlog via kamcmd,
>     once you get the log messages, you can set it back to higher value:
>
>     kamcmd cfg.set_now_int core memlog 5
>
>     Cheers,
>     Daniel
>
>
>     On 11/11/15 11:03, Julia Boudniatsky wrote:
>>     Hello Daniel,
>>
>>     I'll try to execute this procedure.
>>
>>     Thank you,
>>     Julia
>>
>>     On Wed, Nov 11, 2015 at 10:49 AM, Daniel-Constantin Mierla
>>     <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>>
>>         Hello,
>>
>>         it looks like the pkg summary is made by the main kamailio
>>         process which doesn't route sip packets at runtime, therefore
>>         it doesn't expose any potential leak.
>>
>>         Can you add following snipped at beginning of the request_route:
>>
>>         if(is_method("OPTIONS") && src_ip==TRUSTEDIP &&
>>         $rU=="pkgsummary") {
>>            pkg_summary();
>>            sl_send_reply("200", "ok");
>>            exit;
>>         }
>>
>>         You need to replace TRUSTEDIP with the IP address from where
>>         you will send a SIP OPTIONS later.
>>
>>         After you restart kamailio, let it run for a while until you
>>         see the pkg decreasing enough.
>>
>>         Then send OPTIONS request via sipsak:
>>
>>         sipsak -s sip:pkgsummary at yourserverip
>>
>>         Check the syslog to see if the pkg summary messages are there
>>         and if yes, send them here.
>>
>>         If not, you may need to decrease the value for memlog, do:
>>
>>         kamcmd cfg.set_now_int core memlog 1
>>
>>         and then run again the sipsak command.
>>
>>         Cheers,
>>         Daniel
>>
>>
>>         On 11/11/15 07:17, Julia Boudniatsky wrote:
>>>         Hello,
>>>         We are running Kamailio 4.2.6 ( db77ac) compiled with memory
>>>         debugging.
>>>         The free PKG memory has decreased on ~6.5 Mafter two weeks.
>>>         Please see attached file with the log messages at kamailio
>>>         shutdown.
>>>         Thank you in advance,
>>>         Julia.
>>>
>>>
>>>         _______________________________________________
>>>         SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>         sr-users at lists.sip-router.org
>>>         <mailto:sr-users at lists.sip-router.org>
>>>         http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>         -- 
>>         Daniel-Constantin Mierla
>>         http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>>         Book: SIP Routing With Kamailio - http://www.asipto.com
>>         Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat
>>
>>
>>         _______________________________________________
>>         SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
>>         mailing list
>>         sr-users at lists.sip-router.org
>>         <mailto:sr-users at lists.sip-router.org>
>>         http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
>     -- 
>     Daniel-Constantin Mierla
>     http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>     Book: SIP Routing With Kamailio - http://www.asipto.com
>     Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat
>
>

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151202/a8860253/attachment.html>


More information about the sr-users mailing list