Apache最大连接数性能测试

发表于:2010-1-29 14:12

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:zhaoyong(51CTO)    来源:51Testing软件测试网采编

分享:

  以下开始测试:

  ab是Apache超文本传输协议(HTTP)的性能测试工具。 其设计意图是描绘当前所安装的Apache的执行性能, 主要是显示你安装的Apache每秒可以处理多少个请求。

  此命令其他参数就不多说了,你可以google,会很多我,我也是go出来的,我用的了以下俩个参数:

  -c concurrency

  一次产生的请求个数。

  -n requests

  在测试会话中所执行的请求个数。

  以下我测试3次,如下:

  [root@abb conf]# ab -n 1000 -c 100 [url]http://192.168.1.226/[/url]

  表示同时处理1000个请求并运行100次

  This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0

  Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, [url]http://www.zeustech.net/[/url]

  Copyright (c) 1998-2002 The Apache Software Foundation, [url]http://www.apache.org/[/url]

  Benchmarking 192.168.1.226 (be patient)

  Completed 100 requests

  Completed 200 requests

  Completed 300 requests

  Completed 400 requests

  Completed 500 requests

  Completed 600 requests

  Completed 700 requests

  Completed 800 requests

  Completed 900 requests

  Finished 1000 requests

  Server Software:        Apache/2.0.59

  测试机apache版本号

  Server Hostname:        192.168.1.226

  测试机主机名

  Server Port:            80

  测试机端口

  Document Path:          /

  测试机目录

  Document Length:        1456 bytes

  文档大小

  Concurrency Level:      100

  并发数

  Time taken for tests:   1.305834 seconds

  整个测试持续的时间

  Complete requests:      1000

  完成请求的数量

  Failed requests:        0

  失败请求数量

  Write errors:           0

  错误请求数量

  Total transferred:      1924263 bytes

  整个测试的网络传输量

  HTML transferred:       1489488 bytes

  整个测试html页面的网络传输量

  Requests per second:    765.79 [#/sec] (mean)

  关注1:每秒事务数

  Time per request:       130.583 [ms] (mean)

  关注2:平均事务响应时间

  Time per request:       1.306 [ms] (mean, across all concurrent requests)

  每个请求实际运行时间的平均值

  Transfer rate:          1438.93 [Kbytes/sec] received

  平均每秒网络上的流量

  Connection Times (ms)

  min  mean[+/-sd] median   max

  Connect:       17   45  17.1     47      92

  Processing:    21   76  58.7     61     585

  Waiting:        1   56  24.0     52     116

  Total:         64  121  57.5    119     610

  网络上消耗时间的分解

  Percentage of the requests served within a certain time (ms)

  50%    119

  66%    122

  75%    125

  80%    132

  90%    139

  95%    172

  98%    325

  99%    465

  100%    610 (longest request)

43/4<1234>
精选软件测试好文,快来阅读吧~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号