Hi, Can somebody in the list tell me why sometimes when I do the TOP command I see more than one asterisk process ? Sometimes it appears and desappears again... Thanks, Ard.
On Wed, Nov 22, 2006 at 05:02:42PM -0300, Ard wrote:> Hi, > Can somebody in the list tell me why sometimes when I do the TOP > command I see more than one asterisk process ? > > Sometimes it appears and desappears again...Which kernel do you use? 2.4 by any chance? If so: are all of them with the same memory size? -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
I'm using 2.6 kernel on RHEL 4. Yes, all are of the same memory size. Date: Thu, 23 Nov 2006 08:20:27 +0200 From: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Subject: Re: [asterisk-users] More than one asterisk process To: asterisk-users@lists.digium.com Message-ID: <20061123062027.GJ5385@xorcom.com> Content-Type: text/plain; charset=us-ascii On Wed, Nov 22, 2006 at 05:02:42PM -0300, Ard wrote:> Hi, > Can somebody in the list tell me why sometimes when I do the TOP > command I see more than one asterisk process ? > > Sometimes it appears and desappears again...Which kernel do you use? 2.4 by any chance? If so: are all of them with the same memory size?
This is the output. [root@serv ~]# ps auxw | grep asterisk root 4392 0.0 0.6 50604 13968 ? Ssl 11:02 0:00 asterisk root 5050 0.0 0.4 38416 9268 ? S 11:07 0:00 asterisk root 5242 0.0 0.4 38528 9420 ? S 11:09 0:00 asterisk root 5495 0.0 0.4 38448 9500 ? S 11:10 0:00 asterisk root 5499 0.0 0.4 38472 9504 ? S 11:10 0:00 asterisk root 5548 0.0 0.4 38404 9488 ? S 11:10 0:00 asterisk root 5551 0.0 0.4 38408 9488 ? S 11:10 0:00 asterisk root 5566 0.0 0.4 38360 9520 ? S 11:10 0:00 asterisk root 5594 0.0 0.4 38420 9592 ? S 11:10 0:00 asterisk root 5626 0.0 0.4 38512 9776 ? S 11:10 0:00 asterisk root 5629 0.0 0.4 38524 9776 ? S 11:10 0:00 asterisk root 5740 0.0 0.4 39528 9848 ? S 11:10 0:00 asterisk root 5741 0.0 0.4 39532 9848 ? S 11:10 0:00 asterisk root 5743 0.0 0.4 39540 9852 ? S 11:10 0:00 asterisk root 5892 0.0 0.4 39352 9732 ? S 11:10 0:00 asterisk root 5912 0.0 0.4 39332 9716 ? S 11:10 0:00 asterisk root 5914 0.0 0.4 39336 9716 ? S 11:10 0:00 asterisk root 7011 0.0 0.4 39828 10272 ? S 11:11 0:00 asterisk From: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Subject: Re: [asterisk-users] More than one asterisk process To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Message-ID: <20061123154540.GF5385@xorcom.com> Content-Type: text/plain; charset=us-ascii On Thu, Nov 23, 2006 at 10:32:44AM -0300, Ard wrote:> I'm using 2.6 kernel on RHEL 4. Yes, all are of the same memory size.That's strange. What is the output of: ps auxww | grep asterisk -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir Thanks for your help! Ard.
On Thu, Nov 23, 2006 at 05:31:03PM -0300, Ard wrote:> This is the output. > > [root@serv ~]# ps auxw | grep asterisk > root 4392 0.0 0.6 50604 13968 ? Ssl 11:02 0:00 asterisk > root 5050 0.0 0.4 38416 9268 ? S 11:07 0:00 asterisk > root 5242 0.0 0.4 38528 9420 ? S 11:09 0:00 asterisk > root 5495 0.0 0.4 38448 9500 ? S 11:10 0:00 asterisk > root 5499 0.0 0.4 38472 9504 ? S 11:10 0:00 asterisk > root 5548 0.0 0.4 38404 9488 ? S 11:10 0:00 asterisk > root 5551 0.0 0.4 38408 9488 ? S 11:10 0:00 asterisk > root 5566 0.0 0.4 38360 9520 ? S 11:10 0:00 asterisk > root 5594 0.0 0.4 38420 9592 ? S 11:10 0:00 asterisk > root 5626 0.0 0.4 38512 9776 ? S 11:10 0:00 asterisk > root 5629 0.0 0.4 38524 9776 ? S 11:10 0:00 asterisk > root 5740 0.0 0.4 39528 9848 ? S 11:10 0:00 asterisk > root 5741 0.0 0.4 39532 9848 ? S 11:10 0:00 asterisk > root 5743 0.0 0.4 39540 9852 ? S 11:10 0:00 asterisk > root 5892 0.0 0.4 39352 9732 ? S 11:10 0:00 asterisk > root 5912 0.0 0.4 39332 9716 ? S 11:10 0:00 asterisk > root 5914 0.0 0.4 39336 9716 ? S 11:10 0:00 asterisk > root 7011 0.0 0.4 39828 10272 ? S 11:11 0:00 asteriskDifferent processes, indeed. What do you see in /var/run/asterisk.pid or /var/eun/asterisk/asterisk.pid ? Strange. This is the second report I see of such a situation in this list recently. Asterisk should fail to daemonize if it finds a different Asterisk through the PID file. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir