使用ab的时候当并发数超过1024就会示出错:
windows下提示:apr_pollset_create failed: Invalid argument (22)
linux下提示:socket: Too many open files (24)
下面是从CSDN转的一篇linux下的解决办法
=======================================
ab测试apache出错的解决办法 http://blog.csdn.net/answerzy/archive/2007/11/19/1892194.aspx
[root@answer bin]# ./ab -n 20000 -c 2000 http://192.168.2.60/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 1997-2005 The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.2.60 (be patient)
socket: Too many open files (24)
解决办法: bash自带的ulimit, 各大版本均有提供
ulimit -n 2000(你需要的值)
=======================================
这应该不难理解,linux是通过文件来对设备进行管理,ulimit
-n是设置同时打开文件的最大数值,ab中每一个连接打开一个设备文件,所以设置这个值就可以解决了。未发现有windows下的解决办法,尝试过按网上
一些文章更改tcpip的并发连接数也不行,如果那位知道,不妨告知一下。
分享到:
相关推荐
apache benchmark 独立文件 ab.exe 可以直接使用 Version 2.3。一般用户压力测试用。参数如下 .\ab.exe --help Options are: -n requests Number of requests to perform -c concurrency Number of multiple ...
ab是apache自带的压力测试工具。ab非常实用,它不仅可以对apache服务器进行网站访问压力测试,也可以对或其它类型的服务器进行压力测试。比如nginx、tomcat、IIS等
-c 即concurrency,用于指定的并发数。 -t 即timelimit,等待响应的最大时间(单位:秒)。 -b 即windowsize,TCP发送/接收的缓冲大小(单位:字节)。 -p 即postfile,发送POST请求时需要上传的文件,此外还必须设置...
shit + 右键, 打开命令行 命令:ab -n1000 -c100 http://localhost:12001/
Mac安装Apache Benchmark() 1.下载依赖 wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz wget ...
ApacheBench测试,ab.exe纯文件,省去配置apache麻烦。
apache carbondata performance benchmark,大数据数据结构与算法,数据压缩格式,性能分析报告与报表,最新大数据压缩格式carbondata
受Apache Benchmark的启发,它打算成为steriods上的Apache Benchmark(ab.exe)。 它会在测试结束时在终端窗口中显示最终结果,但也会在Web界面中不断报告。开始上手你需要什么Superbenchmarker(sb或sbcore)可在...
Apache Benchmark解析器该实用程序将Apache ...用法使用以下格式运行它: java -jar ab-parser.jar [source] [target csv]源可以是包含Apache Benchmark报告文件的目录,也可以是单个Apache Benchmark报告文件。
ab 的全称是 ApacheBench , 是 Apache 附带的一个小工具 , 专门用于 HTTP Server 的 benchmark testing , 可以同时模拟多个并发请求。
Apache CarbonData Performance Benchmark Report(0.1.0)
Apache 2.4 安全加固。 Table of Contents Overview .........................................................................................................................................................
Apache Spark 基准测试 该项目是硕士论文的成果,旨在成为 Apache Spark 框架的测试平台。 其基本思想是能够在软件和... apache.benchmark.config.global.master :我们想要运行基准的模式。 如果我们想要在本地执行
CIS_Apache_HTTP_Server_Benchmark_v3.0.0中详细讲述了apache配置的安全问题,可以更好的对apache httpd服务进行配置
ab专门用于HTTP Server的benchmark testing,可以同时模拟多个并发请求,使用这个轻巧的工具我们可以对服务器进行负载测试。 今天在公司也用它作一些测试,现在整理了下它的一些东西分享下。 首先我们要得到Apache...
Benchmark etcd性能测试工具
第三代benchmark模型,可用于主动控制算法的比较
CIS Benchmarks Apache HTTP Server 2.2
CIS 针对 Apache Tomcat 9 的安全测评文档
php benchmark 工具