名兒 NAME

ab - Apache HTTP 服務器性能測試工具

總覽 SYNOPSIS

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-username: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://]hostname[:port]/path

描述 SUMMARY

ab                  是一個測試你Apache                  http服務器的工具,你可以通過這個工具

指定一個單位時間內向apache發出的請求數量來看看你的Apache和機 器配合的性能如何

選項 OPTIONS

-A auth-username:password

支持基本的驗證證書,用戶名和密碼之間使用"冒號"                                      :

分隔開,ab將以明文方式傳送過去.不管服務器是不是需要

,也就是說你的服務器需要支持401認證.

-c concurrency

同時向服務器端發送的請求數目,默認狀態下是一次 只執行一個http請求.

-C cookie-name=value

添加一個 Cookie:到request. 格式為 name=value 此項可重複.

-d     不要顯示"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 suppress 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  display  the  warn‐

ing/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).

-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>)

BUGS

There  are various statically declared buffers of fixed length. Combined with the lazy pars‐

ing of the command line arguments, the response headers from the server and  other  external

inputs, this might bite you.

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; i.e., you would measure the ab performance rather than the server's.

echo sb > ./.sb

ab中文手册的更多相关文章

  1. NVelocity介绍,NVelocity中文手册文档及实例下载

    NVelocity是什么velocity英音:[vi'lɔsiti]美音:[və'lɑsətɪ]近在做一个项目,客户要求有网站模板功能,能够自主编辑网站的风格,因为这个系统是为政府部门做子站系统,举个 ...

  2. (转)Sqoop中文手册

    Sqoop中文手册 1.     概述 本文档主要对SQOOP的使用进行了说明,参考内容主要来自于Cloudera SQOOP的官方文档.为了用中文更清楚明白地描述各参数的使用含义,本文档几乎所有参数 ...

  3. man中文手册配置

    1.ubuntu环境man中文手册配置 1)  终端输入sudo apt-get install manpages-zh 2)  安装后修改配置文件sudo gedit /etc/manpath.co ...

  4. 《zw版·Halcon-delphi系列原创教程》 Halcon分类函数·简明中文手册 总览

    <zw版·Halcon-delphi系列原创教程> Halcon分类函数·简明中文手册 总览 Halcon函数库非常庞大,光HALCONXLib_TLB.pas文件,源码就要7w多行,但核 ...

  5. phpredis中文手册——《redis中文手册》 php版

    本文是参考<redis中文手册>,将示例代码用php来实现,注意php-redis与redis_cli的区别(主要是返回值类型和参数用法). 目录(使用CTRL+F快速查找命令): Key ...

  6. socket.io 中文手册 socket.io 中文文档

    socket.io 中文手册,socket.io 中文文档转载于:http://www.cnblogs.com/xiezhengcai/p/3956401.html 服务端 io.on('connec ...

  7. Zepto,Zepto API 中文版,Zepto 中文手册,Zepto API,Zepto API 中文版,Zepto 中文手册,Zepto API 1.0, Zepto API 1.0 中文版,Zepto 1.0 中文手册,Zepto 1.0 API-translate by yaotaiyang

    Zepto,Zepto API 中文版,Zepto 中文手册,Zepto API,Zepto API 中文版,Zepto 中文手册,Zepto API 1.0, Zepto API 1.0 中文版,Z ...

  8. 按钮的图标 Button icons-JQUERY MOBILE 1.0正式版中文手册

    按钮的图标 Button icons-JQUERY MOBILE 1.0正式版中文手册 data-icon属性可以被用来创建如下所示的图标 左箭头data-icon="arrow-l&quo ...

  9. Swift中文手册 -- The Basics

    原文:Swift中文手册 -- The Basics 基础部分 Swift 是 iOS 和 OS X 应用开发的一门新语言.然而,如果你有 C 或者 Objective-C 开发经验的话,你会发现 S ...

随机推荐

  1. javascript快速排序

    function quickSort(arr){ if(arr.length <= 1) return arr;//判断是否有效数组 var cut = Math.floor(arr.lengt ...

  2. Bootstrap<基础十一>字体图标(Glyphicons)

    字体图标(Glyphicons),并通过一些实例了解它的使用.Bootstrap 捆绑了 200 多种字体格式的字形. 获取字体图标 我们已经在 环境安装 章节下载了 Bootstrap 3.x 版本 ...

  3. React Native 组件样式测试

    View组件默认样式(注意默认flexDirection:'column') {flexGrow:0,flexShrink:0,flexBasis:'auto',flexDirection:'colu ...

  4. 在Django中进行注册用户的邮件确认

    之前利用Flask写博客时(http://hbnnlove.sinaapp.com),我对注册模块的逻辑设计很简单,就是用户填写注册表单,然后提交,数据库会更新User表中的数据,字段主要有用户名,哈 ...

  5. ini配置文件格式

    转自:http://blog.sina.com.cn/s/blog_6988593e0101e6i4.html  程序没有任何配置文件,那么它对外是全封闭的,一旦程序需要修改一些参数必须要修改程序代码 ...

  6. java打jar包,引用其他.jar文件

    大家都知道一个java应用项目可以打包成一个jar,当然你必须指定一个拥有main函数的main class作为你这个jar包的程序入口. 具体的方法是修改jar包内目录META-INF下的MANIF ...

  7. util-linux编译unknown architecture 'BSD_LABELSECTOR' undeclared错误

    ------------------------------------------------------------------------------ In :: fdiskbsdlabel.h ...

  8. Linux网络编程的一般步骤(1)

    一.套接字的地址结构. IPV4套接字地址结构通常也称为"网际套接字地址结构",它以sockaddr_in 命名;POSIX定义如下: #include <stdio.h&g ...

  9. article和section

    article和section都是指页面中的块,但是article更加强调独立性,而section常被用来分块. section使用禁忌: 1.不要把section当作定义样式的容器,因为那是div的 ...

  10. fcitx 候选词出现奇怪的笔画

    原来fcitx还有笔画输入的功能,输入h出现一个横,s出现竖,p是撇,n是捺,z是折. 虽然很有意思,但是不实用,而且还会出现在第一页候选词中,影响输入,可以通过配置文件禁用掉: $ vim ~/.c ...