Asterisk using a lot of CPU


#1

Hi all,

i have a Pentium IV 3.6Ghz HT CPU with 512Mb Dual channel Ram with Mandrake 10.1 with kernel 2.6.11-6mdksmp
im running asterisk zaptel and libpri 1.0.9.

The asterisk is using 99.9% CPU with 4 or 5 calls from sip/IAX2 to a ZAP channel.

anyone knows what is the problem?

There is the process tree of asterisk

root 32110 0.0 0.2 2524 1312 pts/4 S Jan08 0:00 /bin/sh /usr/sbin/safe_asterisk
root 32124 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32132 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32143 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32145 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32147 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32148 0.0 14.7 132356 75856 pts/4 S Jan08 0:50 _ asterisk -vvvvvvvgc -c
root 32151 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32152 0.0 14.7 132356 75856 pts/4 S Jan08 0:05 _ asterisk -vvvvvvvgc -c
root 32153 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32154 0.3 14.7 132356 75856 pts/4 S Jan08 2:48 _ asterisk -vvvvvvvgc -c
root 32155 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32156 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32157 0.0 14.7 132356 75856 pts/4 S Jan08 0:02 _ asterisk -vvvvvvvgc -c
root 32158 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32159 0.0 14.7 132356 75856 pts/4 S Jan08 0:01 _ asterisk -vvvvvvvgc -c
root 32160 0.0 14.7 132356 75856 pts/4 S Jan08 0:01 _ asterisk -vvvvvvvgc -c
root 32161 0.0 14.7 132356 75856 pts/4 S Jan08 0:03 _ asterisk -vvvvvvvgc -c
root 32162 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32163 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 32164 0.0 14.7 132356 75856 pts/4 S Jan08 0:01 _ asterisk -vvvvvvvgc -c
root 32252 0.0 14.7 132356 75856 pts/4 S Jan08 0:00 _ asterisk -vvvvvvvgc -c
root 10767 15.7 14.7 132356 75856 pts/4 S 12:27 2:08 _ asterisk -vvvvvvvgc -c
root 10809 11.7 14.7 132356 75856 pts/4 S 12:33 0:57 _ asterisk -vvvvvvvgc -c
root 10839 3.8 14.7 132356 75856 pts/4 S 12:37 0:09 _ asterisk -vvvvvvvgc -c
root 10847 20.1 14.7 132356 75856 pts/4 S 12:38 0:32 _ asterisk -vvvvvvvgc -c
root 10861 31.2 14.7 132356 75856 pts/4 S 12:41 0:03 _ asterisk -vvvvvvvgc -c


#2

Check if you don’t have a music on hold process that ran away. Look for the process “mpg123” under processes in the System Monitor. You will probably find that it is using 60-70% of the cpu. It won’t be the mpg123 process under the Asterisk branch but it will occur on it’s own in System Monitor.

Make sure you have %CPU selected in the System Monitor options to see that.