[asterisk-users] Expert to work on load issue

Dovid Bender dovid at telecurve.com
Tue Oct 27 12:27:42 CDT 2020


Jon,

We are only using FastAgi. On the second system (running Asterisk 16) there
are no agi's running (just some bash scripts on call hangup). I did add
some hackey code (netstat -nua | grep -v 'udp        0      0' | grep -v
udp6 | grep -v ' 0 0.0.0.0' | grep udp)  to my bash script to check out the
packet queue (with the help of
https://serverfault.com/questions/623377/is-there-a-way-to-get-current-txqueue-utilization-on-e-g-eth0-or-tun-device)
and it  *seems there may be a corelation between packets in the queue and
the load on Asterisk

[root at a30 ~]# /tmp/x.sh
CPU USAGE 393.8 Active calls 317
CPU USAGE 117.6 Active calls 318
CPU USAGE 143.8 Active calls 318
CPU USAGE 305.9 Active calls 318
udp        0    768 0.0.0.0:14510           0.0.0.0:*

CPU USAGE 123.5 Active calls 316
CPU USAGE 137.5 Active calls 314
CPU USAGE 329.4 Active calls 314
CPU USAGE 312.5 Active calls 317
CPU USAGE 125.0 Active calls 317
CPU USAGE 137.5 Active calls 316
CPU USAGE 123.5 Active calls 316
CPU USAGE 117.6 Active calls 315
CPU USAGE 117.6 Active calls 314
CPU USAGE 135.3 Active calls 312
CPU USAGE 131.2 Active calls 309
CPU USAGE 131.2 Active calls 308
CPU USAGE 118.8 Active calls 309
CPU USAGE 331.2 Active calls 310
CPU USAGE 111.8 Active calls 309
udp        0   1280 0.0.0.0:15598           0.0.0.0:*

CPU USAGE 517.6 Active calls 309
CPU USAGE 137.5 Active calls 308
CPU USAGE 143.8 Active calls 308
CPU USAGE 137.5 Active calls 307
CPU USAGE 311.8 Active calls 308
CPU USAGE 137.5 Active calls 308
CPU USAGE 125.0 Active calls 307
CPU USAGE 156.2 Active calls 307
udp        0   1280 0.0.0.0:19148           0.0.0.0:*

CPU USAGE 135.3 Active calls 305
CPU USAGE 305.9 Active calls 307
CPU USAGE 156.2 Active calls 309
CPU USAGE 450.0 Active calls 311
CPU USAGE 137.5 Active calls 310
CPU USAGE 137.5 Active calls 310
CPU USAGE 256.2 Active calls 311
CPU USAGE 150.0 Active calls 308
CPU USAGE 281.2 Active calls 308
CPU USAGE 281.2 Active calls 307
CPU USAGE 137.5 Active calls 304
udp        0   1280 0.0.0.0:11284           0.0.0.0:*

CPU USAGE 135.3 Active calls 306
CPU USAGE 150.0 Active calls 309
CPU USAGE 331.2 Active calls 310
CPU USAGE 125.0 Active calls 308
CPU USAGE 117.6 Active calls 307
CPU USAGE 135.3 Active calls 306
udp        0   1280 0.0.0.0:18494           0.0.0.0:*

CPU USAGE 137.5 Active calls 307
CPU USAGE 141.2 Active calls 306
CPU USAGE 137.5 Active calls 307
CPU USAGE 562.5 Active calls 308
CPU USAGE 862.5 Active calls 311
CPU USAGE 164.7 Active calls 310
udp        0    768 0.0.0.0:17890           0.0.0.0:*

udp        0   1280 0.0.0.0:11504           0.0.0.0:*

[root at a30 ~]#



On Tue, Oct 27, 2020 at 1:21 PM Jon Bonilla (Manwe) <manwe at aholab.ehu.es>
wrote:

> El Tue, 27 Oct 2020 12:52:47 -0400
> Dovid Bender <dovid at telecurve.com> escribió:
>
> > Hi,
> >
> > Sorry in advance that I am emailing the users list and not the biz list I
> > think I will find my target audience here. We are looking to hire a
> > consultant to help us figure out an issue. We are having what seems are
> > "random load" issues with bare metal boxes that are dedicated to Asterisk
> > and a few Perl AGI's. We went after all the usual suspects (CPU IDLE,
> > memory usage etc.). I wrote the simple bash script below to show me total
> > calls and CPU usage of Asterisk
> > #! /bin/bash
> >
> >
>
> Did you try FastAGI? Asterisk doesn't handle spawning many processes very
> well.
> It's a bottleneck.
>
>
>
>
> --
> PekePBX, the multitenant PBX solution
> https://pekepbx.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20201027/f61c403a/attachment.html>


More information about the asterisk-users mailing list