[OpenSIPS-Users] Possible Memory Leak in rest_client module.

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Nov 21 14:01:34 CET 2016


Hi Jim,

sorry for the late reply. Unfortunately the memory debugging is not 
properly enabled. What version of OpenSIPS are you using there ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 14.11.2016 16:20, Jim DeVito wrote:
> Hi Bogdan,
>
> Took about a week in production for the problem to crop up again so I 
> was able to get the mem dump. I hope this can provide you some 
> insight. Let me know if you need anything else.
>
> http://pastebin.com/WQWqhhiA
>
> Thanks!!
>
> ---
> Jim DeVito
>
> On 2016-11-07 12:04, Bogdan-Andrei Iancu wrote:
>> Hi Jim,
>>
>> Please see
>> http://www.opensips.org/Documentation/TroubleShooting-OutOfMem - let
>> me know if you managed to get the mem dump.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>> On 07.11.2016 21:20, Jim DeVito wrote:
>>> Hi All,
>>>
>>> This happened prior to 2.2.2 and I thought I saw a bug report that 
>>> was fixed in 2.2.2. However it still seems to be a thing with using 
>>> the res_curl module. After about a week I get this...
>>>
>>> Nov  7 13:33:44 sip-proxy01 opensips: Nov  7 13:33:44 [20811] 
>>> ERROR:core:fm_malloc: not enough free pkg memory (4296 bytes left), 
>>> please increase the "-M" command line parameter!
>>> Nov  7 13:33:44 sip-proxy01 opensips: Nov  7 13:33:44 [20811] 
>>> INFO:core:fm_malloc: attempting defragmentation... (need 1808 bytes)
>>> Nov  7 13:33:44 sip-proxy01 opensips: Nov  7 13:33:44 [20811] 
>>> INFO:core:fm_malloc: unable to alloc a big enough fragment!
>>> Nov  7 13:33:44 sip-proxy01 opensips: Nov  7 13:33:44 [20811] 
>>> ERROR:rest_client:rest_get_method: curl_easy_perform: Out of memory
>>>
>>> I reboot and all is well for another week. Like res_client is not 
>>> releasing the memory it is using. shmem:used_size:: seems to always 
>>> be going up until it runs out of the memory I allotted with the -M 
>>> switch. What else can I do to see where this is coming from?
>>>
>>> Thanks!!
>>>




More information about the Users mailing list