[OpenSIPS-Users] Not enough free memory, will atempt defragmenation
Vlad Paiu
vladpaiu at opensips.org
Wed Aug 24 15:40:43 CEST 2011
Hello Dani,
About the memory log that you sent.. I see no obvious memory leak. So as
far as I can see, there are two possibilities
- something really needs that much PKG. To make sure that this
isn't the case, please increase your PKG_MEM_POOL_SIZE to a higher value
and let us know if you still experience the same problem.
- at shutdown, that extra bogus memory is freed up and doesn't show
up anymore in the memory dump.
Please try first increasing the memory and see if OpenSIPS is still
reporting out of mem problems.
About the second issue with
bad pointer (nil) (out of memory block!) - aborting
, there was a bug in OpenSIPS which lead to the calling of free(0), in a
no more pkg situation. This has been fixed in trunk, 1.7 and 1.6 branches.
Regards,
--
Vlad Paiu
OpenSIPS Developer
On 08/24/2011 02:40 PM, Dani Popa wrote:
> Hi again,
>
> A new mem error, maybe you are interested
>
> Aug 24 06:59:50 test /usr/local/sbin/opensips[1324]: SUBSCRIBE :
> SUBSCRIBE -- b6874def55c7f5cf8e4d61b4cc4095c9-f985 -- e170995a--
> Aug 24 06:59:50 test /usr/local/sbin/opensips[1324]:
> ERROR:presence:send_2XX_reply: No more pkg memory
> Aug 24 06:59:50 test /usr/local/sbin/opensips[1324]:
> CRITICAL:core:qm_free: bad pointer (nil) (out of memory block!) -
> aborting
>
>
> Dani
> On 08/19/11 17:31, Bogdan-Andrei Iancu wrote:
>> Hi Dani,
>>
>> You can not have comments in multi-line assignments....
>>
>> So, instead of
>>
>> DEFS+= $(extra_defs) \
>> .
>> -DCHANGEABLE_DEBUG_LEVEL \
>> #-DF_MALLOC \
>> -DDBG_QM_MALLOC \
>> #-DDBG_F_MALLOC \
>>
>> you should do :
>>
>> DEFS+= $(extra_defs) \
>> .
>> -DCHANGEABLE_DEBUG_LEVEL \
>> -DDBG_QM_MALLOC \
>> #-DF_MALLOC \
>> #-DDBG_F_MALLOC \
>>
>>
>> BTW, once you compiled in the DBG support, set:
>> memlog=6
>> memdump=1
>>
>> in order to get only the memory dump without all runtime logs from
>> mem debugger.
>>
>> Regards,
>> Bogdan
>>
>> On 08/19/2011 01:13 PM, Dani Popa wrote:
>>> Hi,
>>> True, i changed wrong the Makefiles.defs.
>>>
>>> I dont know if you need this:
>>>
>>> if i change Makefile.defs as:
>>>
>>> DEFS+= $(extra_defs) \
>>> .
>>> .
>>> .
>>> .
>>> -DCHANGEABLE_DEBUG_LEVEL \
>>> #-DF_MALLOC \
>>> -DDBG_QM_MALLOC \
>>> #-DDBG_F_MALLOC \
>>>
>>>
>>> opensips will not be compiled with -DDBG_QM_MALLOC
>>> I'll come back with goodies,
>>>
>>> Thanks,
>>> Dani
>>>
>>> On 08/19/11 12:01, Vlad Paiu wrote:
>>>> Hello,
>>>>
>>>> Thanks for the reply.
>>>> Unfortunately, It seems that you have not compiled OpenSIPS with
>>>> -DDBG_QM_MALLOC, so please review my last email and see that I also
>>>> suggested editing Makefiles.defs and uncommenting that particular
>>>> line, while commenting -DF_MALLOC.
>>>>
>>>> If you succesfully do this, opensips -V should show something like :
>>>> ..... SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC .....
>>>>
>>>> Please do this and return with the logs at shutdown. Thank you.
>>>>
>>>>
>>>> Regards,
>>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list