在Mac OS X Lion下运行ab会报如下错误:
apr_socket_recv: Connection reset by peer (54)
|
比如:
$ ab -n 1000 -c 10 http://localhost:8888/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Send request failed!
Send request failed!
Send request failed!
apr_socket_recv: Connection reset by peer (54)
|
新版的Apache已经解决了这个问题,可以获取源代码并编译如下:
wget http://mirrors.kahuki.com/apache//httpd/httpd-2.3.16-beta.tar.bz2
tar jxvf httpd-2.3.16-beta.tar.bz2
cd httpd-2.3.16
./configure
|
我只需要一个ab,所以只编译support目录即可。
重新运行ab
./ab -n 1000 -c 10 http://localhost:8888/
|
Bingo! :)
对于老一些的版本的Apache,需要打补丁
wget https://www.rtfm.ro/download/patches/ab.patch --no-check-certificate
patch -p0 < ./ab.patch
|
会有一行出错,不要理,继续往下走。
patching file support/ab.c
Hunk #1 FAILED at 670.
Hunk #2 FAILED at 1683.
Hunk #3 FAILED at 1767.
3 out of 3 hunks FAILED -- saving rejects to file support/ab.c.rej
|
然后按前面的步骤编译Apache的support目录。
分享到:
相关推荐
apache benchmark 独立文件 ab.exe 可以直接使用 Version 2.3。一般用户压力测试用。参数如下 .\ab.exe --help Options are: -n requests Number of requests to perform -c concurrency Number of multiple ...
Apache 2.4 安全加固。 Table of Contents Overview .........................................................................................................................................................
第三代benchmark模型,可用于主动控制算法的比较
CIS_CentOS_Linux_7_Benchmark_v3.1.1.pdf
Li_A_Continual_Deepfake_Detection_Benchmark_Dataset_Methods_and_Essentials_WACV_2023_paper.pdf
ATTO_Disk_Benchmark_3_05 磁盘测试测试最佳工具,性能特佳,磁盘性能指标尽情掌握,装配服务器和工作站必备工具之一
CIS_Apache_HTTP_Server_Benchmark_v3.0.0中详细讲述了apache配置的安全问题,可以更好的对apache httpd服务进行配置
Benchmark指标数据_1481529096301.pdf
ab是apache自带的压力测试工具。ab非常实用,它不仅可以对apache服务器进行网站访问压力测试,也可以对或其它类型的服务器进行压力测试。比如nginx、tomcat、IIS等
点云分割数据集,在学习论文《Relation-Shape Convolutional Neural Network for Point Cloud Analysis》时用到的数据集。
常用的智能优化算法的benchmark函数,供优化算法论文性能比较实用。
Simultaneous perturbation stochastic approximation
CIS_Red_Hat_Enterprise_Linux_8_Benchmark_v1.0.1.pdf
Benchmark指标数据_1468828563196.pdf
TalkingData-2017年7月移动游戏Benchmark_1503627158157_2.pdf
TalkingData-2017年5月移动游戏Benchmark_1497592368962_2.pdf
服务器端组件将预投标处理卸载到云端_idhash-benchmark_Go_下载.zip
TalkingData-2017年4月移动游戏Benchmark指标数据_1495436674977.pdf
benchmark 函数,matlab编程
此为ASCE的第三代基准模型代码,可供土木工程领域学者使用。