[OpenSIPS-Users] Not enough free memory

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Dec 21 15:27:18 CET 2010


Hi Ronald,

You haven't properly enabled the mem debugger in your Makefile.defs .... 
please post here the section where you did the changes just to double 
check it.

Regards,
Bogdan

Ronald Cepres wrote:
> Hi Ovidiu,
>
> I tried enabling memory manager debug but doing so causes it to 
> somewhat crash (no error logs but opensips stops running) with just a 
> single call. Here is the link to download the logs i fetched with 
> memory manager debug enabled if this would 
> help: http://www.2shared.com/file/npidL9pz/opensips.html
>
> Thanks!
>
> Regards,
> Ronald
>
> On Fri, Dec 17, 2010 at 1:56 AM, Ovidiu Sas <osas at voipembedded.com 
> <mailto:osas at voipembedded.com>> wrote:
>
>     Here's how to investigate/debug memory issues:
>     http://www.opensips.org/Resources/DocsTsMem
>
>     Regards,
>     Ovidiu Sas
>
>     On Thu, Dec 16, 2010 at 12:44 PM, Ronald Cepres
>     <rbcepres at gmail.com <mailto:rbcepres at gmail.com>> wrote:
>     > Hi to all,
>     > If I run OpenSIPS (1.6.3 ) for a long time while calls are
>     coming in, it
>     > suddenly stops with the following sample logs:
>     > Dec 16 12:26:43 [12114] ERROR:core:new_avp: no more shm mem
>     > Dec 16 12:26:43 [12114] ERROR:core:add_avp: Failed to create new avp
>     > structure
>     > Dec 16 12:26:43 [12114] ERROR:avpops:db_query_avp: unable to add avp
>     > Dec 16 12:26:43 [12103] ERROR:core:new_avp: no more shm mem
>     > Dec 16 12:26:43 [12103] ERROR:core:add_avp: Failed to create new avp
>     > structure
>     > Dec 16 12:26:43 [12103] ERROR:avpops:db_query_avp: unable to add avp
>     > Dec 16 12:26:43 [12106] WARNING:core:fm_malloc: Not enough free
>     memory, will
>     > atempt defragmenation
>     > Dec 16 12:26:43 [12106] WARNING:core:fm_malloc: Not enough free
>     memory, will
>     > atempt defragmenation
>     > Dec 16 12:26:43 [12106] ERROR:dialog:dlg_add_leg_info: no more
>     shm mem
>     > Dec 16 12:26:43 [12106] ERROR:dialog:init_leg_info:
>     dlg_add_leg_info failed
>     > Dec 16 12:26:43 [12106] ERROR:dialog:push_reply_in_dialog: could
>     not add
>     > further info to the dialog
>     > Dec 16 12:26:43 [12105] WARNING:core:fm_malloc: Not enough free
>     memory, will
>     > atempt defragmenation
>     > Dec 16 12:26:43 [12105] ERROR:core:new_avp: no more shm mem
>     > Dec 16 12:26:43 [12105] ERROR:core:add_avp: Failed to create new avp
>     > structure
>     > Dec 16 12:26:43 [12102] WARNING:core:fm_malloc: Not enough free
>     memory, will
>     > atempt defragmenation
>     > Dec 16 12:26:43 [12105] ERROR:avpops:db_query_avp: unable to add avp
>     > Dec 16 12:26:43 [12102] ERROR:dialog:build_new_dlg: no more shm
>     mem (277)
>     > Dec 16 12:26:43 [12105] WARNING:core:fm_malloc: Not enough free
>     memory, will
>     > atempt defragmenation
>     > Dec 16 12:26:43 [12105] ERROR:tm:new_t: out of mem
>     > Dec 16 12:26:43 [12105] ERROR:tm:t_newtran: new_t failed
>     > Dec 16 12:26:43 [12117] WARNING:core:fm_malloc: Not enough free
>     memory, will
>     > atempt defragmenation
>     > Dec 16 12:26:43 [12102] ERROR:dialog:dlg_create_dialog: failed
>     to create new
>     > dialog
>     > Dec 16 12:26:43 [12102] ERROR:dialog:set_dlg_profile: dialog was
>     not yet
>     > created - script error
>     > Dec 16 12:26:43 [12102] ERROR:dialog:w_set_dlg_profile: failed
>     to set
>     > profile
>     > Is there a way that memory leak would happen from a
>     mis-configured routing
>     > script? If so, how do I trace the part of the routing script
>     that causes the
>     > leak?
>     > Thanks!
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >
>     >
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto: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
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Event - expo, conf, social, bootcamp
2 - 4 February 2011, ITExpo, Miami,  USA
www.voice-system.ro




More information about the Users mailing list