Hi, Why does my asterisk keep forking instances at random times everyday? When I do ps aux, I got this: asterisk 13068 2.2 5.1 25924 12276 ? Sl 06:00 13:18 asterisk -vvvg -c asterisk 23558 0.0 5.1 26040 12248 ? S 09:57 0:00 asterisk -vvvg -c asterisk 29832 0.0 5.1 25924 12208 ? S 11:48 0:00 asterisk -vvvg -c asterisk 31872 0.0 5.1 25924 12208 ? S 12:32 0:00 asterisk -vvvg -c asterisk 2520 0.0 5.1 25928 12228 ? S 13:21 0:00 asterisk -vvvg -c asterisk 4638 0.0 5.1 25924 12232 ? S 13:50 0:00 asterisk -vvvg -c asterisk 5126 0.0 5.1 25932 12240 ? S 13:57 0:00 asterisk -vvvg -c asterisk 6487 0.0 5.1 26016 12336 ? S 14:23 0:00 asterisk -vvvg -c Is this normal? Does anyone experience this? Thanks.. Regards, Stevanus
I had this and no one could really answer it. I only get it 1 of my systems. I've tried a few things, from removing zaptel watchdog - since I contacted the telco and they said I had a hung channel, to rebuilding * with different options. Are you configuring * manually or using a GUI? Lee -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of stevanus Sent: 17 April 2006 10:10 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] multiple asterisk process ? Hi, Why does my asterisk keep forking instances at random times everyday? When I do ps aux, I got this: asterisk 13068 2.2 5.1 25924 12276 ? Sl 06:00 13:18 asterisk -vvvg -c asterisk 23558 0.0 5.1 26040 12248 ? S 09:57 0:00 asterisk -vvvg -c asterisk 29832 0.0 5.1 25924 12208 ? S 11:48 0:00 asterisk -vvvg -c asterisk 31872 0.0 5.1 25924 12208 ? S 12:32 0:00 asterisk -vvvg -c asterisk 2520 0.0 5.1 25928 12228 ? S 13:21 0:00 asterisk -vvvg -c asterisk 4638 0.0 5.1 25924 12232 ? S 13:50 0:00 asterisk -vvvg -c asterisk 5126 0.0 5.1 25932 12240 ? S 13:57 0:00 asterisk -vvvg -c asterisk 6487 0.0 5.1 26016 12336 ? S 14:23 0:00 asterisk -vvvg -c Is this normal? Does anyone experience this? Thanks.. Regards, Stevanus _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/
Any thoughts as to why only 1 of my boxes has this problem? I'm on a 2.6 kernel so any more ideas? Regards Lee -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Dave Cotton Sent: 18 April 2006 09:00 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] multiple asterisk process ? On Tue, 2006-04-18 at 08:29 +0100, Tim Panton wrote:> > I'd guess you have a startup script for asterisk that is setting the > LD_ASSUME_KERNEL environment variable. > > To check, find the 'main' asterisk process id (almost always the > lowest numbered asterisk process) then look (as root) in the /proc > entry, eg: > > cat /proc/13098/environ | strings | grep LD_ASSUME_KERNELNow we're getting somewhere. In some old contribs/init.d asterisk scripts there is the following:- # Leave this set unless you know what you are doing. #export LD_ASSUME_KERNEL=2.4.1 While others have nothing or this # Uncomment this ONLY if you know what you are doing. # export LD_ASSUME_KERNEL=2.4.1 -- Dave Cotton <dcotton@linuxautrement.com> _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/
Yes it is a problem cos after a while of just leaving it the system is unable to make calls out via the PSTN, which is why I have spent time with the telco, more like wasted time...., and played with zaptel's make options. After trying a few things I came to the temporary conclusion that it was the zaptel watchdog trying and failing to restart a hung channel. I recompiled zaptel without the watchdog and a few days later it did the same so I'm back to sq 1. Regards Lee -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Dave Cotton Sent: 18 April 2006 09:27 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] multiple asterisk process ? On Tue, 2006-04-18 at 09:13 +0100, Lee Archer wrote:> Any thoughts as to why only 1 of my boxes has this problem?Is it really a problem?> I'm on a > 2.6 kernel so any more ideas?Can someone answer what was the original purpose of the "export LD_ASSUME_KERNEL=2.4.1" in the asterisk script? Perhaps Gregory Boehnlein, the author, will be able to tell us. -- Dave Cotton <dcotton@linuxautrement.com> _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/
All I can figure is that something I haven't yet figured is causing these processes to be created, and after a while there is so many that outgoing calls over zap can't be made. It only applies to 1 system out of 7, running Suse 10 and a 2.6 kernel. Lee -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Dave Cotton Sent: 18 April 2006 10:02 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] multiple asterisk process ? On Tue, 2006-04-18 at 09:33 +0100, Lee Archer wrote:> Yes it is a problem cos after a while of just leaving it the system is> unable to make calls out via the PSTN, which is why I have spent time > with the telco, more like wasted time...., and played with zaptel's > make options. After trying a few things I came to the temporary > conclusion that it was the zaptel watchdog trying and failing to > restart a hung channel. I recompiled zaptel without the watchdog and > a few days later it did the same so I'm back to sq 1.Ok, I'll ask it another way. Is it _the_ problem because I've an uptime of 209 days on a system with no problems and multiple asterisk processes. -- Dave Cotton <dcotton@linuxautrement.com> _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/