Greg Boehnlein
2005-Jul-20 02:04 UTC
[Asterisk-Users] [Asterisk-Dev] Memory Leak in Stable?
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@pbx tftpboot]# asterisk -rvc
Asterisk CVS-v1-0-07/03/05-05:09:22, Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster@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@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
_______________________________________________
Asterisk-Dev mailing list
Asterisk-Dev@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
Greg Boehnlein
2005-Aug-04 07:35 UTC
[Asterisk-Users] Re: [Asterisk-Dev] Memory Leak in Stable?
On Wed, 20 Jul 2005, Greg Boehnlein wrote:> 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.Score one bug fixed for Clue Con! Mark gave me some pointers on how to debug this, and I did some legwork for him. He was able to isolate the memory leak to app_dial, and sumbmitted patches to both Stable and Head branches. Thanks to everyone that sent suggestions! -- Vice President of N2Net, a New Age Consulting Service, Inc. Company http://www.n2net.net Where everything clicks into place! KP-216-121-ST _______________________________________________ Asterisk-Dev mailing list Asterisk-Dev@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-dev To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
Greg Boehnlein
2005-Aug-04 07:45 UTC
[Asterisk-Users] Re: [Asterisk-Dev] Memory Leak in Stable?
On Wed, 20 Jul 2005, Greg Boehnlein wrote:> 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.Score one bug fixed for Clue Con! Mark gave me some pointers on how to debug this, and I did some legwork for him. He was able to isolate the memory leak to app_dial, and sumbmitted patches to both Stable and Head branches. Thanks to everyone that sent suggestions! -- Vice President of N2Net, a New Age Consulting Service, Inc. Company http://www.n2net.net Where everything clicks into place! KP-216-121-ST _______________________________________________ Asterisk-Dev mailing list Asterisk-Dev@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-dev To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
Sherwood McGowan
2005-Aug-04 07:54 UTC
[Asterisk-Users] Re: [Asterisk-Dev] Memory Leak in Stable?
I experience this problem as well, a 512MB machine drops down to less than 10MB. I'm running *RealTime however. ->-----Original Message----- ->From: asterisk-users-bounces@lists.digium.com ->[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of ->Greg Boehnlein ->Sent: Thursday, August 04, 2005 10:35 AM ->To: Asterisk Developers Mailing List ->Cc: asterisk-users@lists.digium.com ->Subject: [Asterisk-Users] Re: [Asterisk-Dev] Memory Leak in Stable? -> ->On Wed, 20 Jul 2005, Greg Boehnlein wrote: -> ->> 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. -> ->Score one bug fixed for Clue Con! Mark gave me some pointers ->on how to debug this, and I did some legwork for him. He was ->able to isolate the memory leak to app_dial, and sumbmitted ->patches to both Stable and Head branches. -> ->Thanks to everyone that sent suggestions! -> ->-- -> Vice President of N2Net, a New Age Consulting Service, ->Inc. Company -> http://www.n2net.net Where everything clicks into place! -> KP-216-121-ST -> -> -> ->_______________________________________________ ->Asterisk-Users mailing list ->Asterisk-Users@lists.digium.com ->http://lists.digium.com/mailman/listinfo/asterisk-users ->To UNSUBSCRIBE or update options visit: -> http://lists.digium.com/mailman/listinfo/asterisk-users ->