[SR-Users] Memory leak after enabling topos module

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 24 13:37:37 CEST 2017


Hello,

thanks for troubleshooting, testing and reporting the results, the
feedback helped a lot to solve these issues.

I will look at the patch and see if should be pushed to 4.4 -- iirc,
there were quite some changes in topos internals that may be too heavy
for backporting.

Cheers,
Daniel


On 24.04.17 10:57, Sergey Basov wrote:
> Hi, Daniel.
>
> Thank you for your time and patches!
>
> I just finished load test and after 25000 calls there is no memory leak now.
>
> I have done backport of topos module to kamailio 4.4.5, test it and
> result is success.
> I does not very good in using github, so I attached source folder of
> topos module for kamailio 4.4.5 and patch fileagainst kamailio 4.4.5
> source.
>
> May be you or some one other developer will try to include this module
> to 4.4 source tree.
>
> --
> Best regards,
> Sergey Basov                     e-mail: sergey.v.basov at gmail.com
>
>
> 2017-04-21 23:20 GMT+03:00 Daniel-Constantin Mierla <miconda at gmail.com>:
>> Hello,
>>
>> I just pushed another patch to master and 5.0 for this, let me know if
>> the results are good now.
>>
>> Cheers,
>> Daniel
>>
>>
>> On 21.04.17 22:05, Daniel-Constantin Mierla wrote:
>>> Hello,
>>>
>>> it looks like the mysql result is not freed, I will have to check in the
>>> code.
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>> On 21.04.17 21:24, Sergey Basov wrote:
>>>> Hi Daniel,
>>>>
>>>> I recompiled kamailio from 5.0 branch
>>>>
>>>> Seems now memory leak is slower but it is still exist...
>>>>
>>>> Now I have free 12 MBytes of free mem after 2000 calls.
>>>>
>>>> Dump in attach.
>>>>
>>>> If you need more tests - I will do it.
>>>>
>>>> Thank you.
>>>> --
>>>> Best regards,
>>>> Sergey Basov                     e-mail: sergey.v.basov at gmail.com
>>>>
>>>>
>>>> 2017-04-21 18:02 GMT+03:00 Sergey Basov <sergey.v.basov at gmail.com>:
>>>>> Sorry,  i see it.
>>>>> I first look at master branch.
>>>>>
>>>>> I will try and report
>>>>>
>>>>> --
>>>>> WBR
>>>>> Sergey Basov
>>>>>
>>>>> 21 апр. 2017 г. 5:53 PM пользователь "Sergey Basov"
>>>>> <sergey.v.basov at gmail.com> написал:
>>>>>
>>>>>> I will try,  but maybee after weekend.
>>>>>>
>>>>>> Can you point me to related commit.
>>>>>>
>>>>>> I have backported topos module to kamailio 4.4 and there is same problem.
>>>>>>
>>>>>> Thank you Daniel.
>>>>>>
>>>>>> --
>>>>>> WBR
>>>>>> Sergey Basov
>>>>>>
>>>>>> 21 апр. 2017 г. 5:26 PM пользователь "Daniel-Constantin Mierla"
>>>>>> <miconda at gmail.com> написал:
>>>>>>> Hello,
>>>>>>>
>>>>>>> thanks for the report and the logs -- I think I fixed it, apparently it
>>>>>>> was related to handling 100 replies. Can you try with latest 5.0 branch?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Daniel
>>>>>>>
>>>>>>>
>>>>>>> On 21.04.17 15:53, Sergey Basov wrote:
>>>>>>>
>>>>>>> Hi All.
>>>>>>>
>>>>>>> During loadtest of kamailio 5.0.1 with topos module I got memory leak
>>>>>>> in "udp receiver" process
>>>>>>>
>>>>>>> After 1600 sip calls I got 10 Mbytes of free private memory. I set
>>>>>>> limit to 32 Mbytes
>>>>>>>
>>>>>>> output of kamcmd corex.pkg_summary pid xxx command at begin test and
>>>>>>> before eom are in attached files.
>>>>>>>
>>>>>>> If you need more info please let me know.
>>>>>>>
>>>>>>> Thank you in advance.
>>>>>>> --
>>>>>>> Best regards,
>>>>>>> Sergey Basov                     e-mail: sergey.v.basov at gmail.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>> sr-users at lists.kamailio.org
>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Daniel-Constantin Mierla
>>>>>>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>>>>>>> Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
>>>>>>> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>> sr-users at lists.kamailio.org
>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>
>> --
>> Daniel-Constantin Mierla
>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
>> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
>>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com




More information about the sr-users mailing list