如何规避围攻并发套接字选择超时

如何规避围攻并发套接字选择超时

尝试测试网站的负载能力。我使用 aws ubuntu xenial 服务器 t2.micro 作为测试客户端,并拥有 SIEGE 3.0.8 和 apache 基准测试版本 2.3

ab -c 100 -n 100000 url另一方面,则siege -c 100 -i -b -f urldatabase.txt -t 20m产生

** SIEGE 3.0.8
** Preparing 150 concurrent users for battle.
The server is now under siege...[alert] socket: 470009600 select timed out: Connection timed out
[alert] socket: 562329344 select timed out: Connection timed out
[alert] socket: -159443200 select timed out: Connection timed out
[alert] socket: -83908864 select timed out: Connection timed out
[alert] socket: 109123328 select timed out: Connection timed out
[alert] socket: 654649088 select timed out: Connection timed out

是否需要进行任何调整?我已经按照教程进行了操作easyengine.com但它没有帮助,仍然有同样的问题

答案1

请更新围攻。

wget http://download.joedog.org/siege/siege-4.0.4.tar.gz
tar -zxf siege-4.0.4.tar.gz
cd siege-4.0.4
./configure
make 
sudo make install
siege.config

您可能需要发出以下命令:

sudo mv /usr/local/bin/siege /usr/bin/

相关内容