Hi, On 64 bit centos 5.6 I have virtualbox 4 and 64 bit elastix latest. Since yesterday cpu utilization has been constantly peaking 65-75%. Hardly 1-2 concurrent calls. No other activity on server. Top shows asterisk on top. Its quad xeon server with 4 gb ram. Any suggestion where should I start and how should I go about with my investigation. Thank you and have a great weekend. Sans -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110514/41bb3541/attachment.htm>
2011/5/14 RSCL Mumbai <rscl.mumbai at gmail.com>> Hi, > > On 64 bit centos 5.6 I have virtualbox 4 and 64 bit elastix latest. > > Since yesterday cpu utilization has been constantly peaking 65-75%. Hardly > 1-2 concurrent calls. No other activity on server. Top shows asterisk on > top. > > Its quad xeon server with 4 gb ram. > > Any suggestion where should I start and how should I go about with my > investigation. > > Thank you and have a great weekend. > > Sans > > -- >Check if someone is brute forcing your asterisk accounts. It used to happen to me before I install fail2ban. You can easily check the "full" log of asterisk or with just a "tcpdump -i any -n port 5060 or port 4569". Leandro -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110514/9fe424ff/attachment.htm>
On Sat, May 14, 2011 at 11:43 AM, Leandro Dardini <ldardini at gmail.com>wrote:> Check if someone is brute forcing your asterisk accounts. It used to happen > to me before I install fail2ban. You can easily check the "full" log of > asterisk or with just a "tcpdump -i any -n port 5060 or port 4569". > > Thx for the tcpdump command.Checked, all looks good. Packets coming from trusted domains only. What should be the next step ? Thx Sans -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110515/e783a3a0/attachment.htm>
2011/5/15 RSCL Mumbai <rscl.mumbai at gmail.com>> > On Sat, May 14, 2011 at 11:43 AM, Leandro Dardini <ldardini at gmail.com>wrote: > >> Check if someone is brute forcing your asterisk accounts. It used to >> happen to me before I install fail2ban. You can easily check the "full" log >> of asterisk or with just a "tcpdump -i any -n port 5060 or port 4569". >> >> Thx for the tcpdump command. > Checked, all looks good. > Packets coming from trusted domains only. > > What should be the next step ? > > Thx > Sans > >Have you tried to restart asterisk? As last chance, install strace and check what is asterisk doing. Get the pid (PID) of the running asterisk and run: strace -p PID -f -F &> /tmp/strace.log Leave it running for a while then read the strace.log file Leandro -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110515/92f12d88/attachment.htm>
Sorry fro hijacking thread. I have following process running on my asterisk eating around 2 or 3% CPU constantly. I knew events0/1 is CPU queue but why only single queue is busy ? I have kernel running preemtive with 1000Hz satish at campbx1:~$ ps aux | grep events root 9 1.7 0.0 0 0 ? S May08 201:35 [events/0] root 10 0.0 0.0 0 0 ? S May08 1:19 [events/1]> Date: Mon, 16 May 2011 17:37:16 +0300 > From: tzafrir.cohen at xorcom.com > To: asterisk-users at lists.digium.com > Subject: Re: [asterisk-users] Asterisk-cpu utilization > 60 % > > On Mon, May 16, 2011 at 05:19:20PM +0430, Pezhman Lali wrote: > > check your running process, if you have more than one asterisk in your > > "top" re install your asterisk. > > Reinstall? Care to explain why? > > -- > Tzafrir Cohen > icq#16849755 jabber:tzafrir.cohen at xorcom.com > +972-50-7952406 mailto:tzafrir.cohen at xorcom.com > http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110516/3190d7aa/attachment.htm>
> > >> http://www.moythreads.com/wordpress/2009/05/06/why-does-asterisk-consume-100-cpu/ >> > > Moving forward with the suggestion provided on the above link, I have the > activity dump of all asterisk processes when the load was 22%. > Need help in understanding the output. > > What should I look for which would indicate undue CPU utilization. > >Any finding in my *asterisk.stack.txt ? *Thank you.* * -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110516/b4c13fca/attachment.htm>
On Mon, May 16, 2011 at 10:33 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com>wrote:> On Mon, May 16, 2011 at 10:01:36AM -0400, Mark Deneen wrote: > > > "strace -f -ff ASTERISK_PID" > > > > traces all threads on my system. > > But do you really want that? > > Asterisk has many threads generating quite a lot of noise (threads > periodically polling something). > >Probably not. I was merely referring to the statement that strace only traces a particular thread. I would do top -H and then strace the asterisk threads with high CPU numbers. -M -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110516/35388ae5/attachment.htm>
First grab LWP thread ID which is eating more CPU ps -LlFm -p `pidof asterisk` Now look into your asterisk.stack.txt and search particular LWP thread ID see following example Thread 10 (Thread 0x41d8f940 (LWP 3406)): #0 0x00000033ce2ca436 in poll () from /lib64/libc.so.6 #1 0x00000000004933c0 in ast_io_wait () #2 0x00002aaabd9510cd in network_thread () #3 0x00000000004f8b2c in dummy_start () #4 0x00000033cee06367 in start_thread () from /lib64/libpthread.so.0 #5 0x00000033ce2d2f7d in clone () from /lib64/libc.so.6 Now you have piece of cake. whatever the issue is you can find in above few lines.. -S Date: Mon, 16 May 2011 20:38:34 +0530 From: rscl.mumbai at gmail.com To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] Asterisk-cpu utilization > 60 % http://www.moythreads.com/wordpress/2009/05/06/why-does-asterisk-consume-100-cpu/ Moving forward with the suggestion provided on the above link, I have the activity dump of all asterisk processes when the load was 22%. Need help in understanding the output. What should I look for which would indicate undue CPU utilization. Any finding in my asterisk.stack.txt ? Thank you. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110516/4b631b03/attachment.htm>
Processor: Intel Dual Core Xeon 3.0GHz -> Host: CentOS 5.6 (64 bit) --> Virtualbox 4 (64 bit) ---> Asterisk 1.6.2.13 via 64 bit Elastix 2.0.3 Anyone else facing high CPU usage problem with Asterisk 1.6.2.13 or any Elastix 2.0.3 users here ? With just 3 concurrent calls and none in queue, the CPU is constantly above 40%. The moment CPU goes above 50%, calls start to break. I am a newbie and at lack of options... Sans -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110519/11cd29df/attachment.htm>
How much memory have allocate to VM ? and send top or ps command output. Date: Thu, 19 May 2011 22:44:58 +0530 From: rscl.mumbai at gmail.com To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] Asterisk-cpu utilization > 60 % Processor: Intel Dual Core Xeon 3.0GHz -> Host: CentOS 5.6 (64 bit) --> Virtualbox 4 (64 bit) ---> Asterisk 1.6.2.13 via 64 bit Elastix 2.0.3 Anyone else facing high CPU usage problem with Asterisk 1.6.2.13 or any Elastix 2.0.3 users here ? With just 3 concurrent calls and none in queue, the CPU is constantly above 40%. The moment CPU goes above 50%, calls start to break. I am a newbie and at lack of options... Sans -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110519/e69b2daf/attachment.htm>
CPU utilization is constantly above 24% without any call activity.. *top - 05:53:09 up 1:28, 2 users, load average: 0.18, 0.27, 0.29 Tasks: 79 total, 1 running, 78 sleeping, 0 stopped, 0 zombie Cpu(s): 9.7%us, 2.3%sy, 0.0%ni, 87.8%id, 0.0%wa, 0.2%hi, 0.0%si, 0.0%st Mem: 1026824k total, 311300k used, 715524k free, 19644k buffers Swap: 2064376k total, 0k used, 2064376k free, 115668k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2154 asterisk 15 0 765m 27m 10m S 24.0 2.7 6:11.13 asterisk 1 root 15 0 10348 692 580 S 0.0 0.1 0:03.59 init 2 root RT -5 0 0 0 S 0.0 0.0 0:02.13 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd/0 4 root RT -5 0 0 0 S 0.0 0.0 0:08.06 watchdog/0 5 root RT -5 0 0 0 S 0.0 0.0 0:00.09 migration/1 * Pls lister, help me, this is driving me crazy... Thx Sans -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110520/935338a4/attachment.htm>
Reasonably Related Threads
- Re: libvirtd hangs
- Could not destroy domain, current job is remoteDispatchConnectGetAllDomainStats
- Re: [libvirt] increase number of libvirt threads by starting tansient guest doamin - is it a bug?
- deadlock on connection loosing
- Re: [libvirt] increase number of libvirt threads by starting tansient guest doamin - is it a bug?