try to do ps -auxm to list all the threads of the asterisk.
Then connect with gdb to the thread that takes 99% of CPU and find out
what it's doing.

Martin

On Mon, 22 Mar 2004, Bill Hamlin wrote:

> Nope same problem.  I just started it and did a couple of ps aux's and got
> this output:
>
>
> [EMAIL PROTECTED] root]# ps aux|grep ast
> root     20140 91.6  1.3 115880 6676 ?       R    15:43   1:10
> asterisk -vvvvvgcd
> root     20221  0.0  0.1  3572  628 pts/2    S    15:44   0:00 grep ast
> [EMAIL PROTECTED] root]# ps aux|grep ast
> root     20140 92.3  1.3 115880 6676 ?       R    15:43   1:13
> asterisk -vvvvvgcd
> root     20223  0.0  0.1  3568  624 pts/2    S    15:44   0:00 grep ast
> [EMAIL PROTECTED] root]# ps aux|grep ast
> root     20140 91.7  1.3 115880 6676 ?       R    15:43   1:16
> asterisk -vvvvvgcd
> root     20225  0.0  0.1  3572  628 pts/2    S    15:44   0:00 grep ast
> [EMAIL PROTECTED] root]# ps aux|grep ast
> root     20140 92.4  1.3 115880 6676 ?       R    15:43   1:18
> asterisk -vvvvvgcd
> root     20227  0.0  0.1  3572  628 pts/2    S    15:44   0:00 grep ast
> [EMAIL PROTECTED] root]# ps aux|grep ast
> root     20140 92.6  1.3 115880 6676 ?       R    15:43   1:20
> asterisk -vvvvvgcd
> root     20229  0.0  0.1  3572  628 pts/2    S    15:44   0:00 grep ast
> [EMAIL PROTECTED] root]#
>
>
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Scott Stingel
> > Sent: Monday, March 22, 2004 4:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Asterisk-Users] question about CPU usage
> >
> >
> > I think Steve is referring to the following line:
> >
> > export LD_ASSUME_KERNEL=2.4.1
> >
> > If you put this in your command line before starting asterisk,
> > you will get
> > around the RH9 problem of leaving zombies when AGI processes quit.  Other
> > than that, I don't think it influences CPU load.
> >
> > Note that the line is not necessary for Fedora Core 1
> >
> > regards
> > Scott
> >
> > Scott M. Stingel
> > Emerging Voice Technology Inc.
> > Palo Alto, California and London, England
> >
> > Email:          scott "at" evtmedia.com
> > URL:            www.evtmedia.com
> >
> >
> >
> > >-----Original Message-----
> > >From: [EMAIL PROTECTED]
> > >[mailto:[EMAIL PROTECTED] On Behalf Of Bill Hamlin
> > >Sent: Monday, March 22, 2004 9:22 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: RE: [Asterisk-Users] question about CPU usage
> > >
> > >What is it about asterisk that makes this happen?  My other
> > >apps that wait
> > >on a select take hardly any CPU time at all.
> > >
> > >I didn't find anything like "ldassume" using google.  Can you
> > >tell me more
> > >about that?
> > >
> > >Thanks,
> > >Bill.
> > >
> > >> -----Original Message-----
> > >> From: [EMAIL PROTECTED]
> > >> [mailto:[EMAIL PROTECTED] Behalf Of Steven
> > >> Critchfield
> > >> Sent: Monday, March 22, 2004 4:07 PM
> > >> To: [EMAIL PROTECTED]
> > >> Subject: Re: [Asterisk-Users] question about CPU usage
> > >>
> > >>
> > >> On Mon, 2004-03-22 at 14:49, Bill Hamlin wrote:
> > >> > I've had my asterisk running for a couple of weeks and just
> > >> noticed that it
> > >> > takes about 98% of the CPU time (Linux RH9).  Is this what you
> > >> would expect?
> > >> > Is it just that the program is polling for things to do,
> > >> calling "sleep(0)"
> > >> > or something simlar so as to relinquish the machine but
> > >> otherwise polling
> > >> > like crazy?
> > >>
> > >> Do a google search. I believe there is a export line you
> > >need for RH to
> > >> behave more sanely. Something like ldassume_2_4_1. Or you
> > >could switch
> > >> to a more free distro and it will fix itself.
> > >> --
> > >> Steven Critchfield  <[EMAIL PROTECTED]>
> > >>
> > >> _______________________________________________
> > >> Asterisk-Users mailing list
> > >> [EMAIL PROTECTED]
> > >> http://lists.digium.com/mailman/listinfo/asterisk-users
> > >> To UNSUBSCRIBE or update options visit:
> > >>    http://lists.digium.com/mailman/listinfo/asterisk-users
> > >>
> > >
> > >_______________________________________________
> > >Asterisk-Users mailing list
> > >[EMAIL PROTECTED]
> > >http://lists.digium.com/mailman/listinfo/asterisk-users
> > >To UNSUBSCRIBE or update options visit:
> > >   http://lists.digium.com/mailman/listinfo/asterisk-users
> > >
> > >
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > [EMAIL PROTECTED]
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> _______________________________________________
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to