51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1694|回复: 0
打印 上一主题 下一主题

[原创] http压力测试,求助!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2014-11-24 13:43:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本人弄了个web服务器,但是对服务器压力测试不知道怎么弄,看到网上说啊apache并发过万什么的不知道什么个什么意思,多一般服务器怎样的测试结果才算是合格,
希望大家给说说 谢谢,
我对我的服务器用ab做了个简单的测试,结果如下,不知道如下的测试结果能负担起什么级别的应用?
ab -n 2000 -c 2000 http://localhost:8000/api/hello
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
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)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
Completed 1000 requests
Completed 1200 requests
Completed 1400 requests
Completed 1600 requests
Completed 1800 requests
Completed 2000 requests
Finished 2000 requests


Server Software:        Apache
Server Hostname:        localhost
Server Port:            8000

Document Path:          /api/hello
Document Length:        11 bytes

Concurrency Level:      2000
Time taken for tests:   13.803 seconds
Complete requests:      2000
Failed requests:        62
   (Connect: 0, Receive: 0, Length: 62, Exceptions: 0)
Non-2xx responses:      13
Total transferred:      326844 bytes
HTML transferred:       22241 bytes
Requests per second:    144.90 [#/sec] (mean)
Time per request:       13802.718 [ms] (mean)
Time per request:       6.901 [ms] (mean, across all concurrent requests)
Transfer rate:          23.12 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  718 2050.0     46    7018
Processing:   581 7094 1665.0   6898   12413
Waiting:        0 7118 1666.2   7563   10335
Total:        659 7812 2514.2   7987   13782

Percentage of the requests served within a certain time (ms)
  50%   7987
  66%   8362
  75%   8576
  80%   8699
  90%  10343
  95%  13626
  98%  13750
  99%  13764
100%  13782 (longest request)

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-26 15:00 , Processed in 0.062256 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表