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: [email protected] To: [email protected] 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
-- _____________________________________________________________________ -- 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
