<div dir="ltr">Jon,<div><br>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 <a href="https://serverfault.com/questions/623377/is-there-a-way-to-get-current-txqueue-utilization-on-e-g-eth0-or-tun-device">https://serverfault.com/questions/623377/is-there-a-way-to-get-current-txqueue-utilization-on-e-g-eth0-or-tun-device</a>) and it *seems there may be a corelation between packets in the queue and the load on Asterisk</div><div><br></div><div>[root@a30 ~]# /tmp/x.sh <br>CPU USAGE 393.8 Active calls 317<br>CPU USAGE 117.6 Active calls 318<br>CPU USAGE 143.8 Active calls 318<br>CPU USAGE 305.9 Active calls 318<br>udp 0 768 <a href="http://0.0.0.0:14510">0.0.0.0:14510</a> 0.0.0.0:* <br>CPU USAGE 123.5 Active calls 316<br>CPU USAGE 137.5 Active calls 314<br>CPU USAGE 329.4 Active calls 314<br>CPU USAGE 312.5 Active calls 317<br>CPU USAGE 125.0 Active calls 317<br>CPU USAGE 137.5 Active calls 316<br>CPU USAGE 123.5 Active calls 316<br>CPU USAGE 117.6 Active calls 315<br>CPU USAGE 117.6 Active calls 314<br>CPU USAGE 135.3 Active calls 312<br>CPU USAGE 131.2 Active calls 309<br>CPU USAGE 131.2 Active calls 308<br>CPU USAGE 118.8 Active calls 309<br>CPU USAGE 331.2 Active calls 310<br>CPU USAGE 111.8 Active calls 309<br>udp 0 1280 <a href="http://0.0.0.0:15598">0.0.0.0:15598</a> 0.0.0.0:* <br>CPU USAGE 517.6 Active calls 309<br>CPU USAGE 137.5 Active calls 308<br>CPU USAGE 143.8 Active calls 308<br>CPU USAGE 137.5 Active calls 307<br>CPU USAGE 311.8 Active calls 308<br>CPU USAGE 137.5 Active calls 308<br>CPU USAGE 125.0 Active calls 307<br>CPU USAGE 156.2 Active calls 307<br>udp 0 1280 <a href="http://0.0.0.0:19148">0.0.0.0:19148</a> 0.0.0.0:* <br>CPU USAGE 135.3 Active calls 305<br>CPU USAGE 305.9 Active calls 307<br>CPU USAGE 156.2 Active calls 309<br>CPU USAGE 450.0 Active calls 311<br>CPU USAGE 137.5 Active calls 310<br>CPU USAGE 137.5 Active calls 310<br>CPU USAGE 256.2 Active calls 311<br>CPU USAGE 150.0 Active calls 308<br>CPU USAGE 281.2 Active calls 308<br>CPU USAGE 281.2 Active calls 307<br>CPU USAGE 137.5 Active calls 304<br>udp 0 1280 <a href="http://0.0.0.0:11284">0.0.0.0:11284</a> 0.0.0.0:* <br>CPU USAGE 135.3 Active calls 306<br>CPU USAGE 150.0 Active calls 309<br>CPU USAGE 331.2 Active calls 310<br>CPU USAGE 125.0 Active calls 308<br>CPU USAGE 117.6 Active calls 307<br>CPU USAGE 135.3 Active calls 306<br>udp 0 1280 <a href="http://0.0.0.0:18494">0.0.0.0:18494</a> 0.0.0.0:* <br>CPU USAGE 137.5 Active calls 307<br>CPU USAGE 141.2 Active calls 306<br>CPU USAGE 137.5 Active calls 307<br>CPU USAGE 562.5 Active calls 308<br>CPU USAGE 862.5 Active calls 311<br>CPU USAGE 164.7 Active calls 310<br>udp 0 768 <a href="http://0.0.0.0:17890">0.0.0.0:17890</a> 0.0.0.0:* <br>udp 0 1280 <a href="http://0.0.0.0:11504">0.0.0.0:11504</a> 0.0.0.0:* <br>[root@a30 ~]# <br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 27, 2020 at 1:21 PM Jon Bonilla (Manwe) <<a href="mailto:manwe@aholab.ehu.es">manwe@aholab.ehu.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">El Tue, 27 Oct 2020 12:52:47 -0400<br>
Dovid Bender <<a href="mailto:dovid@telecurve.com" target="_blank">dovid@telecurve.com</a>> escribió:<br>
<br>
> Hi,<br>
> <br>
> Sorry in advance that I am emailing the users list and not the biz list I<br>
> think I will find my target audience here. We are looking to hire a<br>
> consultant to help us figure out an issue. We are having what seems are<br>
> "random load" issues with bare metal boxes that are dedicated to Asterisk<br>
> and a few Perl AGI's. We went after all the usual suspects (CPU IDLE,<br>
> memory usage etc.). I wrote the simple bash script below to show me total<br>
> calls and CPU usage of Asterisk<br>
> #! /bin/bash<br>
> <br>
> <br>
<br>
Did you try FastAGI? Asterisk doesn't handle spawning many processes very well.<br>
It's a bottleneck. <br>
<br>
<br>
<br>
<br>
-- <br>
PekePBX, the multitenant PBX solution<br>
<a href="https://pekepbx.com" rel="noreferrer" target="_blank">https://pekepbx.com</a><br>
</blockquote></div>