Steven Kokinos
2004-Apr-27 08:04 UTC
[Asterisk-Users] multiple instances of asterisk spawning
Hello- I have noticed that since i upgraded my kernel, asterisk spawns many copies (usually approximately 18) when starting up. It then runs fine, but there doesn't seem to be any reason for this behavior. I have tried moving between different kernel versions, and all but the stock fedora core 1 kernel exhibits the same behavior. I have verified running this with both safe_asterisk (as I usually do) as well as manually at the command line with no difference in behavior. root 747 0.0 0.2 4248 1136 ? S Apr23 0:00 /bin/sh /usr/sbin/safe_asterisk root 749 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 750 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 751 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 752 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 753 0.0 1.5 116328 7656 ? S Apr23 0:28 asterisk -vvvg -c root 758 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 773 0.0 1.5 116328 7656 ? S Apr23 0:04 asterisk -vvvg -c root 774 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 775 0.0 1.5 116328 7656 ? R Apr23 3:05 asterisk -vvvg -c root 776 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 777 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 781 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 782 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 783 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 784 0.0 1.5 116328 7656 ? S Apr23 0:00 asterisk -vvvg -c root 6029 0.0 1.5 116328 7656 ? S Apr26 0:00 asterisk -vvvg -c root 6243 0.0 0.1 2920 912 pts/0 S 01:09 0:00 asterisk -r root 6244 0.0 1.5 116328 7656 ? S 01:09 0:00 asterisk -vvvg -c [root@phl-01 run]# cat /var/run/asterisk.pid 749 So asterisk does appear to be binding to the first instance (and reloading the config with changes does have an effect, proving that conclusion to a degree). I've also verified going back and forth between asterisk builds (I'm using the stable tree) yields no difference. Strangely - if you look at the PID's, a few of the instances are out of sequence, and have been spawned after the system was running for a few days. Does anyone have any ideas on how to resolve this? -Steve
Steven Critchfield
2004-Apr-27 09:21 UTC
[Asterisk-Users] multiple instances of asterisk spawning
On Tue, 2004-04-27 at 10:04, Steven Kokinos wrote:> Hello- > > I have noticed that since i upgraded my kernel, asterisk spawns many > copies (usually approximately 18) when starting up. It then runs fine, > but there doesn't seem to be any reason for this behavior. I have tried > moving between different kernel versions, and all but the stock fedora > core 1 kernel exhibits the same behavior. > > I have verified running this with both safe_asterisk (as I usually do) > as well as manually at the command line with no difference in behavior.READ THE DAMN ARCHIVES, or at least semi recent discussions. I'm betting you are a fairly new unix user as you don't seem to recognize a multi threaded app. Asterisk is behaving similarly to apache, starting many threads to service quite a few items at once. Your kernel upgrade is probably not the only thing that has happened here. It was commented recently in this mailing list that a recent change in RH ha changed the default behaviour of ps. This change is why you are now seeing something else. -- Steven Critchfield <critch@basesys.com>