Reduce number of processes started with safe_asterisk

I currently have a test box at home its only got a light arm processor ( 266.24 bogomips) I notice when I start asterisk with safe_asterisk that it spawns 30 processes in memory even when there is no calls at all.

Can someone tell me how I can reduce that number to just a few processes? this box probably wont handle more than 2 calls ever so I’m sure it doesn’t need that amount. :question:

are you sayin it spawns 30 asterisk proceses?
if so you have a serious problem.

Ian

Hmm maybe I do then. I compiled asterisk-1.4.17 from source but didn’t do anything in particular just the normal ./configure, make, make install
ps x | grep asterisk
1177 ? S 0:00 /bin/bash /usr/sbin/safe_asterisk
1183 ? R 1697:03 /usr/sbin/asterisk -f -vvvg -c
1186 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1188 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1189 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1190 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1191 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1192 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1194 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1195 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1196 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1197 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1198 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1199 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1200 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1201 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1202 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1203 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1204 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1205 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1206 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1207 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1208 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1209 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1210 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1211 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1212 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1213 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1214 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1215 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
1216 ? S 0:00 /usr/sbin/asterisk -f -vvvg -c
25880 pts/2 S+ 0:00 grep asterisk

Hi

Well I would expect

root 3550 0.0 0.2 4324 1172 ? S Feb03 0:00 /bin/sh /usr/sbin/safe_asterisk
asterisk 3551 0.0 1.5 25092 8732 ? Sl Feb03 1:43 /usr/sbin/asterisk -v -d -g -p -U asterisk -G asterisk

looks like you have a problem…

do a “service asterisk stop” then see whats running

then start form the command line

ie just type “asterisk”

see how many is running then,

My guess is theres a problem in the dialplan

Ian

Those are just child processes. Apache does the same.