首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何规避围城并发套接字选择超时

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

Server Fault用户
提问于 2017-03-31 14:53:46
回答 1查看 2.6K关注 0票数 4

正在尝试测试网站的负载能力。我使用的是一个aws ubuntu异种服务器t2.微测试客户端,它的攻城3.0.8和apache基准版本2.3

ab -c 100 -n 100000 url完成时,没有问题,另一方面,siege -c 100 -i -b -f urldatabase.txt -t 20m生成

代码语言:javascript
复制
** 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的教程,但这并没有帮助我解决同样的问题。

EN

回答 1

Server Fault用户

发布于 2018-02-23 13:49:42

请更新围城。

代码语言:javascript
复制
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

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

代码语言:javascript
复制
sudo mv /usr/local/bin/siege /usr/bin/
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/841822

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档