skerywu 2014-05-18 19:18
浏览 273
已采纳

用Apache自带的工具做并发测试,结果分析

以下是一台阿里云机器,跑的测试结果,有知道这样的结果能反映什么问题吗?
目前小弟遇到一个性能问题,单人操作的时候速度还行,但是20 人左右同时操作的时候,就感觉很慢了。

[root@AY1311281530504461fdZ bin]# ./ab -n 1000 -c 700 localhost/test.jsp
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustec h.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking www.tdaijia.net (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
Completed 1000 requests
Finished 1000 requests

Server Software: Apache-Coyote/1.1
Server Hostname: localhost
Server Port: 80

Document Path: /driver/list.jsp
Document Length: 6026 bytes

Concurrency Level: 700
Time taken for tests: 25.032 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 6287000 bytes
HTML transferred: 6026000 bytes
Requests per second: 39.95 #/sec
Time per request: 17522.387 ms
Time per request: 25.032 ms
Transfer rate: 245.27 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 15 11.4 17 33
Processing: 15 9499 9491.1 7964 25000
Waiting: 15 9499 9491.1 7964 25000
Total: 19 9514 9500.1 7991 25031

Percentage of the requests served within a certain time (ms)
50% 7991
66% 8915
75% 21802
80% 21985
90% 24811
95% 24943
98% 25004
99% 25018
100% 25031 (longest request)

  • 写回答

2条回答 默认 最新

  • chainhou 2014-05-19 12:47
    关注

    有本书《构建高性能WEB站点》,具体讲到了使用AB来测试响应的情况,里面有对应的分析,以及使用页面缓存等情况下对响应的影响。推荐楼主看看。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥15 python天天向上类似问题,但没有清零
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 C#调用python代码(python带有库)
  • ¥15 矩阵加法的规则是两个矩阵中对应位置的数的绝对值进行加和
  • ¥15 活动选择题。最多可以参加几个项目?
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
  • ¥15 vs2019中数据导出问题
  • ¥20 云服务Linux系统TCP-MSS值修改?