<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
First grab&nbsp; LWP&nbsp; thread ID which is eating more CPU&nbsp; <br><br>ps -LlFm -p `pidof asterisk`<br><br>Now look into your asterisk.stack.txt and search particular LWP thread ID&nbsp; see following example<br><br>Thread 10 (Thread 0x41d8f940<b> (LWP 3406)):</b><br>
#0  0x00000033ce2ca436 in poll () from /lib64/libc.so.6<br>
#1  0x00000000004933c0 in ast_io_wait ()<br>
#2  0x00002aaabd9510cd in network_thread ()<br>
#3  0x00000000004f8b2c in dummy_start ()<br>
#4  0x00000033cee06367 in start_thread () from /lib64/libpthread.so.0<br>
#5  0x00000033ce2d2f7d in clone () from /lib64/libc.so.6 <br><br>Now you have piece of cake. whatever the issue is you can find in above few lines.. <br><br>-S<br><br><hr id="stopSpelling">Date: Mon, 16 May 2011 20:38:34 +0530<br>From: rscl.mumbai@gmail.com<br>To: asterisk-users@lists.digium.com<br>Subject: Re: [asterisk-users] Asterisk-cpu utilization &gt; 60 %<br><br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;"><div><div><div class="ecxgmail_quote"><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<a href="http://www.moythreads.com/wordpress/2009/05/06/why-does-asterisk-consume-100-cpu/" target="_blank">http://www.moythreads.com/wordpress/2009/05/06/why-does-asterisk-consume-100-cpu/</a><br>
</blockquote></div></div></div></blockquote><div class="ecxgmail_quote"><blockquote class="ecxgmail_quote" style="padding-left: 1ex;"><div class="ecxim"><br></div>
Moving forward with the suggestion provided on the above link, I have the activity dump of all asterisk processes when the load was 22%.<br>Need help in understanding the output.<br>
<br>What should I look for which would indicate undue CPU utilization.<br><br>
</blockquote></div><br>Any finding in my <b>asterisk.stack.txt ?<br></b>Thank you.<b><br></b>
<br>--
_____________________________________________________________________
-- 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                                               </body>
</html>