[Asterisk-Dev] Memory Leak in Stable?
Greg Boehnlein
damin at nacs.net
Wed Jul 20 02:04:22 MST 2005
Hello,
I have a client that has a fairly small installation (20 SIP
Phones) that is running Stable. Asterisk appears to be consuming large
quantities of memory, and growing uncontrollably to the point where after
about 6 weeks the box starts to swap itself to death. I've been keeping my
eye on it today, and in the last 12 hours, it has grown by about 8
megabytes, and there has been no-one in the office placing any calls.
[root at pbx tftpboot]# asterisk -rvc
Asterisk CVS-v1-0-07/03/05-05:09:22, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster at digium.com>
=========================================================================
Connected to Asterisk CVS-v1-0-07/03/05-05:09:22 currently running on pbx
(pid = 731)
nection>
Verbosity is at least 3
[root at pbx tftpboot]# top
04:57:40 up 16 days, 23:44, 1 user, load average: 0.00, 0.00, 0.00
48 processes: 46 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 0.2% 0.0% 0.0% 0.0% 0.0% 0.0% 99.8%
Mem: 1025700k av, 630604k used, 395096k free, 0k shrd, 84032k buff
406804k active, 76016k inactive
Swap: 2096472k av, 0k used, 2096472k free 157732k
cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
731 root 15 0 252M 252M 3860 S 0.0 25.2 0:01 0 asterisk
734 root 25 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
743 root 25 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
744 root 15 0 252M 252M 3860 S 0.0 25.2 1:05 0 asterisk
746 root 25 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
750 root 15 0 252M 252M 3860 S 0.1 25.2 0:43 0 asterisk
760 root 15 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
763 root 15 0 252M 252M 3860 S 0.0 25.2 15:43 0 asterisk
766 root 15 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
778 root 25 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
780 root 15 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
781 root 25 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
782 root 15 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
790 root 15 0 252M 252M 3860 S 0.0 25.2 0:00 0 asterisk
What can I do to debug this? This is a production system, so during
business hours I can't muck about with it, but after-hours I can pretty
much do whatever I want to it... I just need some guidance.
--
Vice President of N2Net, a New Age Consulting Service, Inc. Company
http://www.n2net.net Where everything clicks into place!
KP-216-121-ST
More information about the asterisk-dev
mailing list