-attributes\fR ] [ -\fBz\fR \fI-attributes\fR ] [http://]\fIhostname\fR[:\fIport\fR]/\fIpath\fR
.SH "描述 SUMMARY"
.PP
.B ab
是一個測試你Apache http伺服器的工具,你可以透過這個工具
指定一個單位時間內向apache發出的請求數量來看看你的Apache和機
器配合的效能如何
.SH "選項 OPTIONS"
.TP
-A \fIauth-username\fR:\fIpassword\fR
支援基本的驗證證書,使用者名稱和密碼之間使用"冒號" :
分隔開,ab將以明文方式傳送過去.不管伺服器是不是需要
,也就是說你的伺服器需要支援401認證.
.TP
-c \fIconcurrency\fR
同時向伺服器端傳送的請求數目,預設狀態下是一次
只執行一個http請求.
.TP
-C \fIcookie-name\fR=\fIvalue\fR
Add a Cookie: line to the request\&. The argument is typically in the form of a \fIname\fR=\fIvalue\fR pair\&. This field is repeatable\&.
.TP
-d
Do not display the "percentage served within XX [ms] table"\&. (legacy support)\&.
.TP
-e \fIcsv-file\fR
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'\&.
.TP
-g \fIgnuplot-file\fR
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\&.
.TP
-h
顯示使用說明
.TP
-H \fIcustom-header\fR
向請求包追加附加的標題字串.此引數應該是有效的標題
行(header line)形式,通常使用冒號":"來分隔有效配對
(valid pair)例如 'Accept-Encoding: zip/zop;8 bit';
.TP
-i
使用一個 http 頭(HEAD) 來替換 GET方法.不可以摻入POST 方法
.TP
-k
允許http KeepAlive ;也就是說執行多個請求在一個
http 會話當中,預設是不允許的也就是no KeepAlive啦;)
.TP
-n \fIrequests\fR
執行一次測試會話的時候所發出的請求數目,預設是執行一個單一的請求
當然了這樣的測試結果也就沒什麼意義了
.TP
-p \fIPOST-file\fR
測試程式也就是ab,將向Apache server傳送帶有HTTP POST
的請求.
.TP
-P \fIproxy-auth-username\fR:\fIpassword\fR
當需要透過代理測試一臺HTTP 伺服器的時候而你的代理
又需要使用者名稱密碼驗證,這時你可以使用這個選項,同樣
使用者名稱與密碼之間使用冒號":"分隔開,ab將之以明文的方式
傳送出去,當然,前提是你的代理是處於407認證狀態的
.TP
-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 suppress these messages\&.
.TP
-s
When compiled in (ab -h will show you) use the SSL protected https rather than the http protocol\&. This feature is experimental and \fIvery\fR rudimentary\&. You probably do not want to use it\&.
.TP
-S
Do not display the median and standard deviation values, nor display the warning/error messages when the average and median are more than one or two times the standard deviation apart\&. And default to the min/avg/max values\&. (legacy support)\&.
.TP
-t \fItimelimit\fR
設定測試的時間的長短,使用這個選項ab將自動設定
測試請求會話數目為50000,然後以你設定的時間為
固定週期.預設狀態下是沒有時限的,也就是直到完成
你所設定的請求數目為止.
.TP
-T \fIcontent-type\fR
內容型別標頭,使用在POST資料的時候.
.TP
-v \fIverbosity\fR
設定冗餘級別,4級打印出每個請求標頭的詳細資訊,
3級打印出回應程式碼(例如,404,200),2級打印出警告
資訊和指示訊息
.TP
-V
顯示版本號並且退出
.TP
-w
列印輸出結果到HTML表中. 預設的表是兩列n行白底黑框
.TP
-x \fI-attributes\fR
使用字串來描述表的屬性,該屬性字串應該插入到
.TP
-X \fIproxy\fR[:\fIport\fR]
Use a proxy server for the requests\&.
.TP
-y \fI-attributes\fR
用於生成html表格每行的屬性名 ( )
.TP
-z \fI-attributes\fR
用於生成html表格每列的屬性名 ( | )
.SH "BUGS"
.PP
There are various statically declared buffers of fixed length\&. Combined with the lazy parsing of the command line arguments, the response headers from the server and other external inputs, this might bite you\&.
.PP
It does not implement HTTP/1\&.x fully; only accepts some 'expected' forms of responses\&. The rather heavy use of strstr(3) shows up top in profile, which might indicate a performance problem; \fIi\&.e\&.\fR, you would measure the ab performance rather than the server's\&.
.SH "參見 SEE ALSO"
httpd(8)
.SH "[中文版維護人]"
.B trcbilg
.SH "[中文版最新更新]"
.BR 2003.11.22
.SH "《中國linux論壇man手冊翻譯計劃》:"
.BI http://cmpp.linuxforum.net
.SH "跋"
.br
本頁面中文版由中文 man 手冊頁計劃提供。
.br
中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR
| |