關于性能測驗,有2個疑問一直困惑了好久, 哪位牛人給解釋下啊
測驗用tomcat安裝后默認的主頁面,
1. 用不同的工具,測驗結果不一樣, 同一工具測驗的結果有時也不一樣
server 配置: 1核心 1G 記憶體, tomcat6
maxthreads,acceptCount 值為默認值,測驗結果如下:
maxthreads+acceptCount 應該代表了能接受的最大并發訪問量, 默認為200+100 =300
按理,應該在300個并發訪問的時候, http_load應該不會顯示出錯才對啊, 結果在180個并發時就出現了錯(“bad byte counts”)
2. 在4核心, 4G記憶體的server上, 測驗到的性能(能接受的最大并發訪問量),似乎與1核1G記憶體的server比,沒有太大變化?
---------測驗輸出-----
[root@i-vyyaz6i1 ~]# http_load -p 180 -s 30 -v uri
http://121.201.63.133:8080/: byte count wrong
http://121.201.63.133:8080/: byte count wrong
1490 fetches, 180 max parallel, 1.1657e+07 bytes, in 30.0001 seconds
7823.48 mean bytes/connection
49.6665 fetches/sec, 388566 bytes/sec
msecs/connect: 197.334 mean, 2201.22 max, 0.42 min
msecs/first-response: 670.052 mean, 11131.6 max, 0.684 min
2 bad byte counts <----180個并發時, http_load顯示有錯
HTTP response codes:
code 200 -- 1488
[root@i-vyyaz6i1 ~]# cat uri
http://121.201.63.133:8080/
[root@i-vyyaz6i1 ~]# ab -c 180 -t 30 http://121.201.63.133:8080/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 121.201.63.133 (be patient)
Finished 1488 requests
Server Software: Apache-Coyote/1.1
Server Hostname: 121.201.63.133
Server Port: 8080
Document Path: /
Document Length: 7834 bytes
Concurrency Level: 180
Time taken for tests: 30.041 seconds
Complete requests: 1488
Failed requests: 0 <-----180個并發時, ab顯示沒有錯
Write errors: 0
Total transferred: 12965925 bytes
HTML transferred: 12561092 bytes
Requests per second: 49.53 [#/sec] (mean)
Time per request: 3633.994 [ms] (mean)
Time per request: 20.189 [ms] (mean, across all concurrent requests)
Transfer rate: 421.49 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 3 164 219.1 118 1198
Processing: 70 2585 3988.6 580 26474
Waiting: 3 854 2488.6 132 15535
Total: 93 2750 3980.6 796 26515
Percentage of the requests served within a certain time (ms)
50% 796
66% 2789
75% 3252
80% 3632
90% 5433
95% 16231
98% 16469
99% 16523
100% 26515 (longest request)
[root@i-vyyaz6i1 ~]#
uj5u.com熱心網友回復:
頂一下,請牛人解答下轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/84617.html
標籤:服務器
上一篇:業界最好用的VDI基準測驗工具
下一篇:elb日志到s3周期是多久???
