[Home]

Summary:ASTERISK-17848: Asterisk 1.8 dead with 100% CPU
Reporter:Satish Patel (satish_lx)Labels:
Date Opened:2011-05-12 16:39:54Date Closed:2011-05-17 07:33:12
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Asterisk 1.8 got dead with CPU 100% load and only option is kill PID of asterisk and start asterisk. I got following errors in logs

[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] VERBOSE[29768] res_musiconhold.c:     -- Started music on hold, class 'default', on IAX2/orasebcam-214
[May 12 17:30:14] WARNING[29768] app_meetme.c: Unable to write frame to channel IAX2/orasebcam-214
[May 12 17:30:14] VERBOSE[29768] res_musiconhold.c:     -- Stopped music on hold on IAX2/orasebcam-214
[May 12 17:30:35] WARNING[29590] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2029817, seqno=95)
[May 12 17:30:43] WARNING[29584] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 2, ts=2036858, seqno=96)
[May 12 17:30:45] VERBOSE[29569] asterisk.c:     -- Remote UNIX connection
[May 12 17:30:45] WARNING[29585] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2039817, seqno=97)
[May 12 17:30:55] WARNING[29587] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2049816, seqno=98)
[May 12 17:31:04] WARNING[29583] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 2, ts=2057857, seqno=99)
[May 12 17:31:05] WARNING[29589] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2059816, seqno=100)
[May 12 17:31:15] WARNING[29588] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2069816, seqno=101)
[May 12 17:31:25] WARNING[29591] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 2, ts=2078856, seqno=102)
[May 12 17:31:25] WARNING[29586] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2079816, seqno=103)
[May 12 17:31:32] VERBOSE[29594] netsock2.c:   == Using SIP RTP CoS mark 5
[May 12 17:31:35] WARNING[29592] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2089815, seqno=104)
[May 12 17:31:45] WARNING[30652] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2099814, seqno=105)
[May 12 17:31:46] WARNING[30643] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 2, ts=2099856, seqno=106)
[May 12 17:31:55] WARNING[30653] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2109814, seqno=107)
[May 12 17:32:05] WARNING[30654] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2119813, seqno=108)
[May 12 17:32:07] WARNING[30642] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 2, ts=2120856, seqno=109)
[May 12 17:32:13] VERBOSE[29569] asterisk.c:     -- Remote UNIX connection
[May 12 17:32:13] VERBOSE[30667] asterisk.c:     -- Remote UNIX connection disconnected
[May 12 17:32:15] WARNING[30656] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2129813, seqno=110)
[May 12 17:32:25] WARNING[30655] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2139813, seqno=111)
[May 12 17:32:28] WARNING[30668] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 2, ts=2141855, seqno=112)
[May 12 17:32:35] WARNING[30675] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2149813, seqno=113)
[May 12 17:32:45] WARNING[30678] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2159812, seqno=114)
[May 12 17:32:49] WARNING[30677] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 2, ts=2162854, seqno=115)
[May 12 17:32:55] WARNING[30695] chan_iax2.c: Max retries exceeded to host 172.24.146.51 on IAX2/orasebcam-214 (type = 6, subclass = 11, ts=2169812, seqno=116)


Comments:By: Satish Patel (satish_lx) 2011-05-13 08:04:55

One more thing I have ubuntu 1000hz preemtive kerenel. And we have exclusive usage of pri and meetme conf

Do you think 1000hz could be the issue ?

By: Satish Patel (satish_lx) 2011-05-13 08:49:21

Also my idle system load is quite high

campbx1*CLI> core show channels
Channel              Location             State   Application(Data)            
0 active channels
0 active calls
18 calls processed
campbx1*CLI>
Disconnected from Asterisk server
root@campbx1:~# uptime
09:45:35 up 5 days, 26 min,  1 user,  load average: 0.22, 0.32, 0.24
root@campbx1:~# uptime
09:45:38 up 5 days, 26 min,  1 user,  load average: 0.20, 0.31, 0.23
root@campbx1:~# uptime



In asterisk 1.2 its pretty low

satish@scream ~ $ uptime
06:46:22 up 51 days,  1:39,  1 user,  load average: 0.04, 0.11, 0.06

By: Satish Patel (satish_lx) 2011-05-13 10:21:28

campbx1*CLI> module show like timing
Module                         Description                              Use Count
res_timing_pthread.so          pthread Timing Interface                 0        
res_timing_timerfd.so          Timerfd Timing Interface                 1        
res_timing_dahdi.so            DAHDI Timing Interface                   0        
3 modules loaded

By: Leif Madsen (lmadsen) 2011-05-17 07:33:11

I'm not sure what we can ask for, and there isn't really any information to go on here. Perhaps a backtrace of the running process, or using strace would help to narrow down what is going on here.

If the reporter can provide debugging information per gdb and strace, then please reopen the issue and attach the debugging information to the issue. I believe switching to res_timing_dahdi will resolve this issue.