[asterisk-users] Asterisk-cpu utilization > 60 %

satish patel satish_lx at hotmail.com
Mon May 16 10:17:49 CDT 2011


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>


More information about the asterisk-users mailing list