ab测试apache server -------------------------------------------------------------------------------- 在阿帕奇服务器的套件中,有一个叫做 ab (apacheBench) 的工具。apacheBench 主要是用来测试阿帕奇服务器执行效率用的,我们就以 apacheBench 做为 CGI vs. FastCGI 的评比工具。 apacheBench 可以针对某个特定的 URL 仿真出连续的联机请求,同时还可以仿真出同时间点数个相同的联机请求,因此利用 apacheBench 可帮助我...
刚做好的服务器,硬件配置还不错呀.双AMD64 的CPU 通过 PORT安装的APACHE21 安装mysql与php index.php 是一个测试页 phpinfo(); ?>; 通过ab测试ab -c 500 -n 5000 http://192.168.9.129/index.php 出现问题. Test aborted after 10 failures apr_socket_connect(): Operation already in progress (37) Total of 12 requests completed
以前安装好apache总是不知道该如何测试apache的性能,现在总算找到一个测试工具了。就是apache自带的测试工具ab(apache benchmark).在apache的bin目录下。 格式: ./ab [options] [http://]hostname[:port]/path 参数: -n requests Number of requests to perform //在测试会话中所执行的请求个数。默认时,仅执行一个请求 -c concurrency Number of multiple requests to make //一次产生的请求个数。默认是...
-p POST file A file containing data that the program will send to the apache server in any HTTP POST requests. The contents of the file should look like name=value&something=other, with special characters URL encoded. ab -p file "http://aa.com/login.php" 因login.php需要登陆才能完成打开页面,请较一...
a.txt文件的内容如下: [quote]hello 4a 4b 4c 4d 4e 4f 4g 4h 4t 4ab 4bc 4th 4abc 4bcd 1234 [9-1][/quote] 可是为什么"egrep '4(ab)?' a.txt"命令的输出结果是这样呢? [code] ~/tmp$ egrep '4(ab)?' a.txt 4a 4b 4c 4d 4e 4f 4g 4h 4t 4ab 4bc 4th 4abc 4bcd 1234 [/code] [ 本帖最后由 ubuntun 于 2007-12-15 23:49 编辑 ]
测试一个url,执行ab命令后,返回 [quote]Benchmarking mail.163.com (be patient)...apr_sockaddr_info_get() for mail.163.com: Unknown error 14643 (14643)[/quote] 请指点下,什么错误,是不是对方防火墙给禁止掉了?谢谢 [ 本帖最后由 Ericzhao82 于 2007-7-18 18:24 编辑 ]
谁帮我看下服务器 压力做多能在多少人 Server Software: apache/2.2.4 Server Hostname: 127.0.0.1 Server Port: 80 Document Path: s/index.php Document Length: 9407 bytes Concurrency Level: 100 Time taken for tests: 304.245247 seconds Complete requests: 10000 Failed requests: 9982 (Connect: 0, Length: 9982, Exceptions: 0) Write errors: ...
对apache进行性能测试,结果如下: ================================= [root@Base etc]# cd /usr/local/apache2/bin/ab -n 10000 -c 500 http://www.abcd.com/ -bash: cd: /usr/local/apache2/bin/ab: Not a directory [root@Base etc]# /usr/local/apache2/bin/ab -n 10000 -c 500 http://www.abcd.com/ This is apacheBench, Version 2.0.40-dev <$Revision: 1.121.2.10 $>; apache-2.0 Copyright (c) 1996 Adam Twiss, Zeus T...