• News
  • Idefisk
  • Tools
  • Tutorials
  • Forum
  • Reviews
  • VoIP Providers
  • Archives
  • Gallery
ZOIPER softphone
AsteriskGuru Archives
Mailing List Archives
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Asterisk-bsd] Asterisk eats all CPU

 
   AsteriskGuru Archives Forum Index -> Asterisk-BSD
View previous topic :: View next topic  
Author Message
idefix at fechner.net
Guest





PostPosted: Wed Mar 25, 2009 8:06 am    Post subject: [Asterisk-bsd] Asterisk eats all CPU

Hi,

I upgraded now in the last weeks my complete port to the current
versions (FreeBSD 7) and asterisk eats now the complete CPU.
(idle is always 0%)
CPU: 10.5% user, 0.0% nice, 53.2% system, 36.3% interrupt, 0.0% idle
Mem: 557M Active, 197M Inact, 192M Wired, 28M Cache, 111M Buf, 18M Free
Swap: 3072M Total, 64M Used, 3008M Free, 2% Inuse

PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
71304 root 131 44 0 65596K 34360K ucond 0:00 54.93%
asterisk

Is there such a problem known and how it can be solved?

Best regards,
Matthias

--

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-bsd
Back to top
michiel at vanbaak.info
Guest





PostPosted: Wed Mar 25, 2009 8:29 am    Post subject: [Asterisk-bsd] Asterisk eats all CPU

On 10:00, Wed 25 Mar 09, Matthias Fechner wrote:
Quote:
Hi,

I upgraded now in the last weeks my complete port to the current
versions (FreeBSD 7) and asterisk eats now the complete CPU.
(idle is always 0%)
CPU: 10.5% user, 0.0% nice, 53.2% system, 36.3% interrupt, 0.0% idle
Mem: 557M Active, 197M Inact, 192M Wired, 28M Cache, 111M Buf, 18M Free
Swap: 3072M Total, 64M Used, 3008M Free, 2% Inuse

PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
71304 root 131 44 0 65596K 34360K ucond 0:00 54.93%
asterisk

Is there such a problem known and how it can be solved?

Hi,

What version of asterisk is this ?
--

Michiel van Baak
michiel@vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer aficionados are both called users?"


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-bsd
Back to top
idefix at fechner.net
Guest





PostPosted: Wed Mar 25, 2009 8:35 am    Post subject: [Asterisk-bsd] Asterisk eats all CPU

Hi,

Michiel van Baak schrieb:
Quote:
What version of asterisk is this ?

it is the current version from the port:
asterisk-1.4.23.1 An Open Source PBX and telephony toolkit
asterisk-addons-1.4.6_4 GPL modules for the Asterisk Open Source PBX
asterisk-app-ldap-2.0.r1_2 LDAPget application module for the Asterisk
zaptel-1.4.11_1 A FreeBSD Driver for FXO, FXS, BRI and PRI Telephony
newt-0.51.0_8 Not Erik's Windowing Toolkit: console I/O handling


Best regards
Matthias

--

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-bsd
Back to top
michiel at vanbaak.info
Guest





PostPosted: Wed Mar 25, 2009 10:44 am    Post subject: [Asterisk-bsd] Asterisk eats all CPU

On 10:29, Wed 25 Mar 09, Matthias Fechner wrote:
Quote:
Hi,

Michiel van Baak schrieb:
> What version of asterisk is this ?

it is the current version from the port:
asterisk-1.4.23.1 An Open Source PBX and telephony toolkit
asterisk-addons-1.4.6_4 GPL modules for the Asterisk Open Source PBX
asterisk-app-ldap-2.0.r1_2 LDAPget application module for the Asterisk
zaptel-1.4.11_1 A FreeBSD Driver for FXO, FXS, BRI and PRI Telephony
newt-0.51.0_8 Not Erik's Windowing Toolkit: console I/O handling

Ah.
I dont have experience with the port.
There's one bug on the tracker about an idle asterisk taking 100% CPU:
http://bugs.digium.com/view.php?id=14732


--

Michiel van Baak
michiel@vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer aficionados are both called users?"


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-bsd
Back to top
under at streamco.org.ua
Guest





PostPosted: Wed Mar 25, 2009 2:56 pm    Post subject: [Asterisk-bsd] Asterisk eats all CPU

Hi.
It seems asterisk is in endless loop.

Try this:
1) Try to compile debug version of asterisk,
2) launch it.
3) connect to it with GDB when it's in endless loop (0% idle).
4) Execute `info threads` to check what thread makes that loop. It's the one in the 'RUNNING' state.
5) exit GDB
6) repeat 3-5 several times to make sure about thread that causes problem
7) connect with GDB again
8) Go to `thr <number>` to thread that seems to cause problem and check `bt` to see what piece of code causes problem.

Matthias Fechner wrote:
Quote:
Quote:
Hi,

Michiel van Baak schrieb:
Quote:
What version of asterisk is this ?

it is the current version from the port:
asterisk-1.4.23.1 An Open Source PBX and telephony toolkit
asterisk-addons-1.4.6_4 GPL modules for the Asterisk Open Source PBX
asterisk-app-ldap-2.0.r1_2 LDAPget application module for the Asterisk
zaptel-1.4.11_1 A FreeBSD Driver for FXO, FXS, BRI and PRI Telephony
newt-0.51.0_8 Not Erik's Windowing Toolkit: console I/O handling


Best regards
Matthias

--
Andrii Arsirii
Streamco
CEO
+380972400426
http://streamco.org.ua
--
Andrii Arsirii
Streamco
CEO
+380972400426
http://streamco.org.ua
Back to top
idefix at fechner.net
Guest





PostPosted: Sun Mar 29, 2009 6:24 am    Post subject: [Asterisk-bsd] Asterisk eats all CPU

Hi,

Andrii Arsirii wrote:
Quote:
Try this:
1) Try to compile debug version of asterisk,

I tried it but it seems not to work.
What I did is:
1. edited /etc/make.conf:
CFLAGS=-g -O1 -pipe
2. recompiled asterisk from port
3. start asterisk with:
gdb /usr/local/sbin/asterisk
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...

so something is wrong here.

Quote:
2) launch it.
3) connect to it with GDB when it's in endless loop (0% idle).

is it possible to connect to a running process without starting it at
first with gdb together, if yes who should I do it?

Best regards
Matthias

--
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-bsd
Back to top
Display posts from previous:   
   AsteriskGuru Archives Forum Index -> Asterisk-BSD All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™