apache??????????
?????calmly ???????[ 2017/7/5 9:39:03 ] ??????????????? ??????? ??????
????????????????????????????????ab??http_load??webbench??siege??
????ab??????
????ab???????????????????????????????????????URL??????з???????????????????URL??????????????????????apache??????????????????nginx??lighthttp??tomcat??IIS??????Web?????????????
????ab????????????????????????????????ú??CPU?????????ú????檔?????????????????????????????????CC?????????????????????????????????????????????????????????????????????????????????
???????????????
????1.???????Requests per second??
????????????????????????????????????????λ??reqs/s????????????????????μ?λ??????????????????????????????μ?λ?????????????????????????????????
??????????????????? / /??????
????Request per second = Complete requests / Time taken for tests
????2.????????????The number of concurrent connections??
???????????????????????????????????????????????????
????3.???????????The number of concurrent users??Concurrency Level??
????????????????????????????????????????????????????????????????????????????
????4.???????????????Time per request??
??????????????????????????????????????/ ?????????? / ???????????????
????Time per request = Time taken for tests /?? Complete requests / Concurrency Level??
????5.??????????????????Time per request: across all concurrent requests??
?????????????????????????????????????? / ????????????
????Time taken for / testsComplete requests
?????????????????????????????
???????????=???????????????/?????????????
????Time per request / Concurrency Level
????ab????
????-n????????????е????????????????????????????????????????
????-c??β?????????????????????????????????????
????-t?????????е????????????????????-n 50000??????????????????????????????????????????????????????????????
????-p?????????POST????????????
????-P??????????????BASIC??????Ρ?????????????????:?????????base64???????????????????????????(???? ???????401??????????)??????????????????
????-T POST??????????Content-type??????header?????
????-v??????????????????-4?????????????????3????????????????????(404??200??)??2???????????????????????????
????-V????汾????????
????-w??HTML??????????????????????????????????п????????
????-i???HEAD??????????GET??
????-x????<table>????????????
????-X???????????????????
????-y????<tr>????????????
????-z????<td>????????????
????-C???????????Cookie:?С???????????name=value??????????????????????????
????-H??????????????????????????????????????Ч???????У????а???????e???????κ?????(?磬"Accept-Encoding:zip/zop;8bit")??
????-A?????????BASIC??????Ρ?????????????????:?????????base64???????????????????????????(???????????401??????????)??????????????????
????-h?????÷?????
????-d?????"percentage served within XX [ms] table"?????(??????汾?????)??
????-e???????????????(CSV)????????а????????????????????????????(??1%??)??????????(????????λ)????????????????“???????”???????'gnuplot'????????á?
????-g?????в?????д?????'gnuplot'????TSV(??Tab????)?????????????????????Gnuplot??IDL??Mathematica??Igor????Excel?С????е??????????
????-i???HEAD??????????GET??
????-k????HTTP KeepAlive????????????HTTP??????ж??????????????????KeepAlive?????
????-q??????????????????150??ab???????10%????100?????????????stderr?????????????????-q????????????Щ?????
??????
![](/images/ad-banner/ad-banner.png)
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11