Eric "ManxPower" Wieling
2005-Oct-15 10:56 UTC
[Asterisk-Users] What would cause a high memory usage in pbx_spool.c ?
Walter Klomp wrote:> Hi, > > After only 4 days I have 107472352 bytes in 46007 allocations in file > 'pbx_spool.c'I seem to recall a memory leak in pbx_spool being fixed a few days ago. check the asterisk-cvs mailing list archive on lists.digium.com
Walter Klomp
2005-Oct-15 21:42 UTC
[Asterisk-Users] What would cause a high memory usage in pbx_spool.c ?
Hi, After only 4 days I have 107472352 bytes in 46007 allocations in file 'pbx_spool.c' asterisk*CLI> show memory summary 180 bytes in 2 allocations in file 'netsock.c' 12 bytes in 1 allocations in file 'devicestate.c' 2268 bytes in 1 allocations in file 'jitterbuf.c' 8160 bytes in 1 allocations in file 'localtime.c' 1232 bytes in 1 allocations in file 'app_queue.c' 1 bytes in 1 allocations in file 'res_features.c' 132376 bytes in 2 allocations in file 'res_musiconhold.c' 3672 bytes in 18 allocations in file 'file.c' 1032 bytes in 2 allocations in file 'enum.c' 378 bytes in 2 allocations in file 'iax2-parser.c' 752 bytes in 2 allocations in file 'res_crypto.c' 21 bytes in 1 allocations in file 'cli.c' 1348 bytes in 4 allocations in file 'cdr.c' 12984 bytes in 19 allocations in file 'chan_iax2.c' 960 bytes in 40 allocations in file 'manager.c' 17647 bytes in 18 allocations in file 'app_voicemail.c' 1456 bytes in 2 allocations in file 'dsp.c' 48456 bytes in 3 allocations in file 'frame.c' 2203 bytes in 15 allocations in file 'channel.c' 42224 bytes in 8 allocations in file 'rtp.c' 150040 bytes in 86 allocations in file 'chan_sip.c' 230 bytes in 9 allocations in file 'chanvars.c' 25736 bytes in 19 allocations in file 'io.c' 4736 bytes in 177 allocations in file 'asterisk.c' 4872 bytes in 144 allocations in file 'sched.c' 513542 bytes in 124 allocations in file 'chan_zap.c' 11907 bytes in 403 allocations in file 'logger.c' 40320 bytes in 140 allocations in file 'loader.c' 4262 bytes in 265 allocations in file 'res_indications.c' 50839 bytes in 850 allocations in file 'pbx.c' 7653 bytes in 585 allocations in file 'pbx_config.c' 2345 bytes in 147 allocations in file 'app_dial.c' 107472352 bytes in 46007 allocations in file 'pbx_spool.c' 5218074 bytes in 110920 allocations in file 'config.c' 113784270 bytes allocated 160019 units total And top shows me that asterisk is using 153m virtual memory and 141 res memory... Only completely stopping asterisk and starting again will free up the memory. What could be causing this? I did read something about call files and variables in the past, but that was a long time ago. I do have to process .call files but not that many... Could there be a memory leak in pbx_spool.c, how can I help troubleshoot that? Thanks Walter.
Walter Klomp
2005-Oct-16 06:18 UTC
[Asterisk-Users] What would cause a high memory usage in pbx_spool.c ?
Hi, It may have been fixed, but then it doesn't run for more than a few seconds :-) Tried to update to CVS from just now (2005-10-16 +0800), and my asterisk now dies a few seconds after starting up with: Ouch ... error while writing audio data: (Segmentation fault) Even a completely clean install did not help. Apparently without the addons it seems to run longer, but my sip and iax peers are running off mysql, so can't really do without. What I did notice during the time it was running (before it segfaults) and I did a show memory summary pbx_spool.c did not show up at all. Isn't that weird? Anyway to troubleshoot this segfault? Normally I would see it right after a module is loaded, but it now happens anywhere from 2 to 10 seconds after asterisk loads. Any help appreciated. Walter. Date: Sat, 15 Oct 2005 12:56:48 -0500 From: "Eric \"ManxPower\" Wieling" <eric@fnords.org> Subject: Re: [Asterisk-Users] What would cause a high memory usage in pbx_spool.c ? To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Message-ID: <435142E0.1030901@fnords.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Walter Klomp wrote:>> Hi, >> >> After only 4 days I have 107472352 bytes in 46007 allocations in file >> 'pbx_spool.c' > >I seem to recall a memory leak in pbx_spool being fixed a few days ago. check the asterisk-cvs mailing list archive on lists.digium.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051016/bfb1114e/attachment.htm