Asterisk 11.3 CPU Utilization

I just installed 11.3 on two machines. Both machines are now showing Asterisk consuming 95-99% of CPU.

I traced this to the main thread (see below).

Both of these installs were done over top of an existing 11.2 installation. There is only one device registered to these servers and no traffic.

Any suggestions would be appreciated. Thank you.

ps -ef | grep asterisk
root 2969 1 0 Apr02 ? 00:00:00 /bin/sh /usr/sbin/safe_asterisk
asterisk 2971 2969 97 Apr02 ? 17:55:35 /usr/sbin/asterisk -f -vvvg -c
root 28673 25339 0 11:57 pts/1 00:00:00 grep --color=auto asterisk

ps -LfFm -p 2971
UID PID PPID LWP C NLWP SZ RSS PSR STIME TTY TIME CMD
asterisk 2971 2969 - 97 41 347220 39136 - Apr02 ? 17:55:48 /usr/sbin/asterisk -f -vvvg -c
asterisk - - 2971 97 - - - 0 Apr02 - 17:54:20 -
asterisk - - 2972 0 - - - 0 Apr02 - 00:00:00 -
asterisk - - 2973 0 - - - 0 Apr02 - 00:00:00 -
asterisk - - 2974 0 - - - 0 Apr02 - 00:00:00 -

Thread 1 (Thread 0x7fcccb4037e0 (LWP 2971)):
#0 0x0000003182cd42bd in write () from /lib64/libc.so.6
#1 0x0000000000427282 in main ()

top - 12:05:18 up 38 days, 21:29, 3 users, load average: 1.08, 1.07, 1.11
Tasks: 153 total, 2 running, 151 sleeping, 0 stopped, 0 zombie
Cpu(s): 26.6%us, 72.4%sy, 0.0%ni, 0.0%id, 0.0%wa, 1.0%hi, 0.0%si, 0.0%st
Mem: 2051988k total, 1878576k used, 173412k free, 181836k buffers
Swap: 4128764k total, 26488k used, 4102276k free, 1207008k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2971 asterisk 20 0 1356m 38m 14m R 98.4 1.9 1082:47 asterisk
24183 mysql 20 0 862m 45m 5104 S 0.3 2.3 12:38.16 mysqld

Connected to Asterisk 11.3.0 currently running on rsip (pid = 2971)
rsipCLI> sip show channelstats
Peer Call ID Duration Recv: Pack Lost ( %) Jitter Send: Pack Lost ( %) Jitter
0 active SIP channels
rsip
CLI> core show channels
Channel Location State Application(Data)
0 active channels
0 of 1000 max active calls ( 0.00% of capacity)
0 calls processed

Did you try deleting the content of /usr/lib/asterisk/modules/ before you compiled a newer version of Asterisk on top of the original one?

No. I didn’t do that? I can try it. Thanks for the suggestion. Why do you think that would make a difference?

I deleted the modules directory then did a make clean, and a new compile and install. Still Asterisk showing 99% CPU Utilization in Top.

Any other suggestions?

Can you use 'strace -p ’ to figure out which file descriptor is being written to, and then /proc//fd/ to figure out what that file is? That might at least provide a further clue.

Thanks for the advice. It doesn’t tell me much. I get:
poll([{fd=-1}, {fd=0, events=POLLIN}], 2, -1) = 1 ([{fd=0, revents=POLLIN}])
read(0, “”, 1) = 0
write(1, “\0”, 1) = 1
poll([{fd=-1}, {fd=0, events=POLLIN}], 2, -1) = 1 ([{fd=0, revents=POLLIN}])
read(0, “”, 1) = 0
write(1, “\0”, 1)

fd 0 and fd 1 both link to null.

Does that tell you anything? Thanks.