<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br> <BR><div>Date: Thu, 5 Sep 2013 12:11:36 -0700<br>From: asterisk.org@sedwards.com<br>To: asterisk-users@lists.digium.com<br>Subject: Re: [asterisk-users] high cpu average load<br><br><pre>On Thu, 5 Sep 2013, Kamlesh Kumar wrote:<br> <br>> Running one asterisk server with below details.<br>> Only SIP to SIP calls. No real time configuration, no recording, no voicemail, no IVR, no codec translation. Average CPU load varies between 4 to 30 for 150 to 200 concurrent calls and<br>> we start getting problem in call quality like delay in connectivity, voice breakage etc....<br>> <br>> Hardware:<br>> 2 Physical processor Intel(R) Xeon(R) CPU 5120 @ 1.86GHz<br>> 8 GB RAM<br>> 500 GB Sata HDD<br>> <br>> Asterisk: 1.6.2.9<br>> PHP 5.3.3 (cli)<br>> MySQL: 5.0.77 <br>> Linux: CnetOS 5.5 (Final)<br>> <br>> Please suggest the solution.<br> <br>Need a bit more detail.<br> <br>The 5120 is kind of a wimpy processor, but what is keeping it busy?<br> <br>What do 'top' and 'htop' show are consuming the processor?<br> <br>What is your application?<br> <br>What are 200 calls doing?<br> <br>Are you calling a bunch of AGIs written in scripting languages?<br> <br>Eliminating translation is difficult. How do you know you were successful? <br>Do 'module show like codec_' and 'module show like format_' show anything <br>unexpected?<br> </pre><pre>Below are the further details:</pre><pre>top and htop shows that 'asterisk' is consuming the whole cpu power.</pre><pre>Application: Kind of SIP trunking - call is coming from IP and using dialplan routed to other third party IP</pre><pre>Are you calling a bunch of AGIs written in scripting languages?<br>only one AGI script written in PHP is called with 'h' extension once the call is hungup</pre><pre>module show like codec_<br>vm*CLI> module show like codec_<br>Module Description Use Count<br>codec_a_mu.so A-law and Mulaw direct Coder/Decoder 0<br>codec_dahdi.so Generic DAHDI Transcoder Codec Translato 0<br>codec_alaw.so A-law Coder/Decoder 0<br>codec_lpc10.so LPC10 2.4kbps Coder/Decoder 0<br>codec_adpcm.so Adaptive Differential PCM Coder/Decoder 0<br>codec_g722.so ITU G.722-64kbps G722 Transcoder 0<br>codec_g726.so ITU G.726-32kbps G726 Transcoder 0<br>codec_ulaw.so mu-Law Coder/Decoder 0<br>codec_gsm.so GSM Coder/Decoder 0<br>9 modules loaded</pre><pre>module show like format_<br>vm*CLI> module show like format_<br>Module Description Use Count<br>format_g726.so Raw G.726 (16/24/32/40kbps) data 0<br>format_ogg_vorbis.so OGG/Vorbis audio 0<br>format_pcm.so Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G. 0<br>format_g729.so Raw G729 data 0<br>format_wav.so Microsoft WAV format (8000Hz Signed Line 0<br>format_wav_gsm.so Microsoft WAV format (Proprietary GSM) 0<br>format_g723.so G.723.1 Simple Timestamp File Format 0<br>format_gsm.so Raw GSM data 0<br>format_vox.so Dialogic VOX (ADPCM) File Format 0<br>format_mp3.so MP3 format [Any rate but 8000hz mono is 0<br>10 modules loaded<br></pre><pre>Thank you,</pre><pre>Kamlesh<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</pre></div>                                            </div></body>
</html>