Apache服務器的性能測試工具
ab命令 是一個測試你 Apache http 服務器的工具,你可以通過這個工具,指定一個單位時間內向 apache 發出的請求數量來看看你的 Apache 和機器配合的性能如何。
ab [ -A auth-username:password ] [ -c concurrency ] [ -C cookie-name=value
] [ -d ] [ -e csv-file ] [ -g gnuplot-file ] [ -h ] [ -H custom-header ] [
-i ] [ -k ] [ -n requests ] [ -p POST-file ] [ -P proxy-auth-user‐
name:password ] [ -q ] [ -s ] [ -S ] [ -t timelimit ] [ -T content-type ]
[ -v verbosity] [ -V ] [ -w ] [ -x <table>-attributes ] [ -X proxy[:port]
] [ -y <tr>-attributes ] [ -z <td>-attributes ] [http://]host‐
name[:port]/path
-A auth-username:password
# 支持基本的驗證證書,用戶名和密碼之間使用"冒號" :
# 分隔開,ab將以明文方式傳送過去.不管服務器是不是需要
# ,也就是說你的服務器需要支持401認證.
-c concurrency
# 同時向服務器端發送的請求數目,默認狀態下是一次 只執行一個http請求.
-C cookie-name=value
# Add a Cookie: line to the request. The argument is typically in the
# form of a name=value pair. This field is repeatable.
-d # Do not display the "percentage served within XX [ms] table".
# (legacy support).
-e csv-file
# Write a Comma separated value (CSV) file which contains for each
# percentage (from 1% to 100%) the time (in milli seconds) it took to
# serve that percentage of the requests. This is usually more useful
# than the 'gnuplot' file; as the results are already 'binned'.
-g gnuplot-file
# Write all measured values out as a 'gnuplot' or TSV (Tab separate
# values) file. This file can easily be imported into packages like
# Gnuplot, IDL, Mathematica, Igor or even Excell. The labels are on
# the first line of the file.
-h # 顯示使用說明
-H custom-header
# 向請求包追加附加的標題字串.此參數應該是有效的標題 行(header
# line)形式,通常使用冒號":"來分隔有效配對 (valid pair)例如 'Accept-
# Encoding: zip/zop;8 bit';
-i # 使用一個 http 頭(HEAD) 來替換 GET方法.不可以摻入POST 方法
-k # 允許http KeepAlive ;也就是說執行多個請求在一個 http
# 會話當中,默認是不允許的也就是no KeepAlive啦;)
-n requests
# 執行一次測試會話的時候所發出的請求數目,默認是執行一個單一的請求
# 當然了這樣的測試結果也就沒什么意義了
-p POST-file
# 測試程序也就是ab,將向Apache server發送帶有HTTP POST 的請求.
-P proxy-auth-username:password
# 當需要通過代理測試一臺 HTTP 服務器的時候而你的代理
# 又需要用戶名密碼驗證,這時你可以使用這個選項,同樣
# 用戶名與密碼之間使用冒號":"分隔開,ab將之以明文的方式
# 發送出去,當然,前提是你的代理是處于407認證狀態的
-q # When processing more than 150 requests, ab outputs a progress count
# on stderr every 10% or 100 requests or so. The -q flag will sup‐
# press these messages.
-s # When compiled in (ab -h will show you) use the SSL protected https
# rather than the http protocol. This feature is experimental and
# very rudimentary. You probably do not want to use it.
-S # Do not display the median and standard deviation values, nor dis‐
# play the warning/error messages when the average and median are
# more than one or two times the standard deviation apart. And de‐
# fault to the min/avg/max values. (legacy support).
-t timelimit
# 設置測試的時間的長短,使用這個選項ab將自動設置
# 測試請求會話數目為50000,然后以你設置的時間為
# 固定周期.默認狀態下是沒有時限的,也就是直到完成
# 你所設置的請求數目為止.
-T content-type
# 內容類型標頭,使用在POST數據的時候.
-v verbosity
# 設置冗余級別,4級打印出每個請求標頭的詳細信息,
# 3級打印出回應代碼(例如,404,200),2級打印出警告 信息和指示消息
-V # 顯示版本號并且退出
-w # 打印輸出結果到HTML表中. 默認的表是兩列n行白底黑框
-x <table>-attributes
# 使用字串來描述表的屬性,該屬性字串應該插入到<table 這里 >
-X proxy[:port]
# Use a proxy server for the requests.
-y <tr>-attributes
# 用于生成html表格每行的屬性名 (<tr>)
-z <td>-attributes
# 用于生成html表格每列的屬性名 (<td>)
主機:被測試主機。
主站蜘蛛池模板: 欧洲亚洲综合一区二区三区| 色噜噜狠狠色综合日日| 久久综合国产乱子伦精品免费| 人人婷婷色综合五月第四人色阁 | 国产精品综合AV一区二区国产馆| 99sescom色综合| 国产尹人香蕉综合在线电影| 精品综合久久久久久88小说| 中文字幕亚洲综合久久| 亚洲AV成人潮喷综合网| 色综合色综合久久综合频道| 国产激情电影综合在线看| 亚洲国产亚洲综合在线尤物 | 久久精品国产亚洲综合色| 人人狠狠综合久久亚洲| 国产综合成人久久大片91| 久久婷婷是五月综合色狠狠| 色综合天天娱乐综合网| 久久综合给合久久狠狠狠97色| 插插插色欲综合网| 丁香六月婷婷综合| 色婷婷综合久久久久中文字幕| 亚洲国产综合在线| 久久综合国产乱子伦精品免费| 国产色综合久久无码有码| 无码综合天天久久综合网| 国精产品自偷自偷综合下载| 国产91色综合久久免费分享| 亚洲综合免费视频| 五月丁香综合缴情六月小说| 亚洲国产美国国产综合一区二区 | 久久婷婷五月综合色奶水99啪| 亚洲VA综合VA国产产VA中| 成人综合伊人五月婷久久| 91精品国产综合久久精品| 国产综合色在线精品| 色综合久久无码五十路人妻| 久久综合给久久狠狠97色| 亚洲AV日韩综合一区尤物| 色综合天天综合高清网| 国产亚洲欧洲Aⅴ综合一区|