Posted: 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--
Posted: 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?
Posted: 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--
Posted: 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
Posted: 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
Posted: 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--
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