[Asterisk-Users] What would cause a high memory usage in
pbx_spool.c ?
Walter Klomp
walter at aglow.com.sg
Sat Oct 15 21:42:13 MST 2005
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.
More information about the asterisk-users
mailing list