One other thing. I use a package called AGISpeedy. Its available for both 
Perl and PHP and I’ve used it for years without any problems. Its supposedly an 
order of magnitude faster than regular FastAGI scripts. The only downside is 
that it hasn’t been maintained a while, but the package is solid and really 
doesn’t need much maintaining. I’ll probably write the author and see if I can 
keep it updated for him.

Regards;

John 

 

From: asterisk-users <asterisk-users-boun...@lists.digium.com> On Behalf Of 
Tech Support
Sent: Friday, September 20, 2019 1:37 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion' 
<asterisk-users@lists.digium.com>
Subject: Re: [asterisk-users] Load issues using AGI

 

Hello;

    What programming language are you using? If you are using Perl, then I can 
suggest this.

(1)    You are going to have to profile your scripts. This is a must. Without 
profiling, you don’t know what the problem is. In my opinion, Devel::NYTProf is 
the king of that hill. It could be as simple as optimizing a single subroutine. 
Then you will know exactly what the problem is.  

(2)    See which version of Perl are you running and see if upgrading it solves 
your problems. The easiest way is to download the newest Perl they support from 
ActiveState.com. It creates a completely independent installation in /opt which 
will not interfere with your system Perl. You can also compile and install the 
newest Perl from source completely separate from your system Perl. That’s what 
I do. I have a couple of scripts to automate that process. If you first get a 
list of your installed modules using ‘perlmod’, you can clean up the output a 
bit and pipe that to cpanm to make sure that you have all the modules you need. 

 

If you are using PHP, then I’m sure that the above still applies, but PHP is 
not my area of expertise. 

 

Regards;

John V.

 

 

From: asterisk-users <asterisk-users-boun...@lists.digium.com 
<mailto:asterisk-users-boun...@lists.digium.com> > On Behalf Of Jöran Vinzens
Sent: Friday, September 20, 2019 12:47 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com <mailto:asterisk-users@lists.digium.com> >
Subject: [asterisk-users] Load issues using AGI

 

Hi all,

 

we have just upgraded from Asterisk 11 to Asterisk 16.

After porting all the config to 16 we figured out some major load problems.

 

the majority running of our Asterisk instances is still having Asterisk 11 so 
we can compare load handling on both versions.

On the same hardware configuration we see load differences that Asterisk 16 
takes four times the load as Asterisk 11 (on 11 we see load 0.5, on 16 we see 
something around 2).

 

Our asterisk is only handling Calls, so there are no Subscription no 
Registration etc.

 

After some testing we figured out if we eliminate AGI Apps from Dialplan we 
reduce the load significantly.

At the moment we have 6 AGI calls for one single call. If we eliminate 3 of 
them we reduce the load by half.

I also tried to have the AGI replaced by some fake AGI which returns 
immediately to make sure it is not related to long running AGI Scripts but this 
made no difference.

I tried to tweaked a bit manipulating the thread limitations in stasis.conf but 
it had no significant effect on load.

Also I tried to "decline" all non AGI messages in stasis.conf. It seems it has 
very little effect.

 

Does anyone have similar issues or a solution?

Is there anyone who calls AGI several times during call establishment?

 

any hin and help would be very much appreciated!

 

I am happy to share more config and information if it helps to find a solution.

 

 

-- 

Jöran Vinzens - vinz...@sipgate.de <mailto:vinz...@sipgate.de> 


sipgate GmbH - Gladbacher Str. 74 - 40219 Düsseldorf
HRB Düsseldorf 39841 - Geschäftsführer: Thilo Salmon, Tim Mois
Steuernummer: 106/5724/7147, Umsatzsteuer-ID: DE219349391

www.sipgate.de <http://www.sipgate.de>  - www.sipgate.co.uk 
<http://www.sipgate.co.uk> 
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to