Hi, The -M parameter did not work in my setup, so I recompiled OpenSIPS after changing PKG_MEM_POOL_SIZE to 1024*1024*4. Even now OpenSIPS stops after handeling many calls.
I now made a test setup with the same config, only with "children=1". Than I fired calls at it with sipp. Here the same happens. With htop i can see the memory usage for the one child go up, the memory usage never goes down, not even after being inactive more than one hour. After a while OpenSIPS starts complaining "ERROR:core:pv_sprintf: pv_sprintf: Memory exhausted! " I than did a "kill -SIGUSR1 OPENSIPS_PID", the log can be found here: http://keenserver.nl/files/dump2.log.tar.gz I really hope someone can help, as I really do not know what to do next. Thanks, Steven > -----Original Message----- > From: [email protected] [mailto:devel- > [email protected]] On Behalf Of Steven Lam, KeenSystems B.V. > Sent: woensdag 21 maart 2012 18:24 > To: OpenSIPS devel mailling list > Subject: Re: [OpenSIPS-Devel] Possible memory leak OpenSIPS 1.7.2 > > Okay, thank you for helping! > I'll first see if i can catch it just before a crash. > > Just a question, can this also be caused by a buggy perl script? > > Steven > > Op 21 mrt. 2012 om 17:54 heeft "Vlad Paiu" <[email protected]> het > volgende geschreven: > > > Hi, > > > > Went through the shutdown memory log, and I see no traces of a leak. > > Maybe you are actually using such high values of pkg mem ? Please try to > increase the pkg memory, by passing the -M parameter at OpenSIPS startup > ( like '-M 4' for 4 Mb of memory per proces, or by editing config.h ( > PKG_MEM_SIZE define, needs recompiling & re-installing of OpenSIPS ). > > > > Regards, > > > > Vlad Paiu > > OpenSIPS Developer > > http://www.opensips-solutions.com > > > > > > On 03/20/2012 02:12 PM, Steven Lam, KeenSystems B.V. wrote: > >> Hi, > >> > >> Thank you for your reply! > >> I'll try to catch it before OpenSIPS crashes. > >> > >> Steven > >> > >>> -----Original Message----- > >>> From: [email protected] [mailto:devel- > >>> [email protected]] On Behalf Of Vlad Paiu > >>> Sent: dinsdag 20 maart 2012 13:00 > >>> To: [email protected] > >>> Subject: Re: [OpenSIPS-Devel] Possible memory leak OpenSIPS 1.7.2 > >>> > >>> Hello, > >>> > >>> Please try to catch this leak at run-time. As soon as a specific > >>> process starts complaining about no more pkg memory, get it's PID from > syslog and do > >>> kill -SIGUSR1 PID > >>> > >>> and you should get the PKG memory dump just for that specific process. > >>> > >>> Regards, > >>> > >>> Vlad Paiu > >>> OpenSIPS Developer > >>> http://www.opensips-solutions.com > >>> > >>> > >>> On 03/20/2012 10:46 AM, Steven Lam, KeenSystems B.V. wrote: > >>>> Hi, > >>>> > >>>> Yesterday OpenSIPS crashed after logging things like this: > >>>> > >>>> WARNING:core:fm_malloc: Not enough free memory, will atempt > >>>> defragmenation > >>>> ERROR:core:build_res_buf_from_sip_req: out of pkg memory ; needs > >>>> 394 > >>>> ERROR:sl:sl_send_reply_helper: response building failed > >>>> > >>>> Looking at the graphs for the memory usage I can see the memory > >>>> consumption is only going up, never going down. Sure it went down > >>>> after OpenSIPS crashing ;-) > >>>> > >>>> I followed this doc to create a memory manager log of OpenSIPS > >>>> stopping > >>> after some calls: > >>>> http://www.opensips.org/Resources/DocsTsMem > >>>> > >>>> I now have a log but no idea where to look for, is there someone > >>>> who > >>> wants to take a look for me? > >>>> The log can be found here: http://keenserver.nl/files/dump.log > >>>> > >>>> Hope someone can help. > >>>> > >>>> Thanks, > >>>> Steven > >>>> > >>>> > >>>> _______________________________________________ > >>>> Devel mailing list > >>>> [email protected] > >>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel > >>> _______________________________________________ > >>> Devel mailing list > >>> [email protected] > >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel > >> > >> > >> _______________________________________________ > >> Devel mailing list > >> [email protected] > >> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel > > > > _______________________________________________ > > Devel mailing list > > [email protected] > > http://lists.opensips.org/cgi-bin/mailman/listinfo/devel > > > > > _______________________________________________ > Devel mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/devel _______________________________________________ Devel mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
