[OpenSIPS-Users] Not enough free memory, will atempt defragmenation

Dani Popa dani.popa at gmail.com
Wed Aug 24 13:40:50 CEST 2011


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
>>
>
>



More information about the Users mailing list