• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    apache ab壓力測試

    發布: 2011-4-15 09:10 | 作者: 不詳 | 來源: 領測軟件測試網采編 | 查看: 92次 | 進入軟件測試論壇討論

    領測軟件測試網

      //

      -C attribute Add cookie, eg. 'Apache=1234. (repeatable)

      //-C cookie-name=value 對請求附加一個Cookie:行。 其典型形式是name=value的一個參數對。此參數可以重復。

      -H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'

      Inserted after all normal header lines. (repeatable)

      -A attribute Add Basic WWW Authentication, the attributes

      are a colon separated username and password.

      -P attribute Add Basic Proxy Authentication, the attributes

      are a colon separated username and password.

      //-P proxy-auth-username:password 對一個中轉代理提供BASIC認證信任。用戶名和密碼由一個:隔開,并以base64編碼形式發送。無論服務器是否需要(即, 是否發送了401認證需求代碼),此字符串都會被發送。

      -X proxy:port Proxyserver and port number to use

      -V Print version number and exit

      -k Use HTTP KeepAlive feature

      -d Do not show percentiles served table.

      -S Do not show confidence estimators and warnings.

      -g filename Output collected data to gnuplot format file.

      -e filename Output CSV file with percentages served

      -h Display usage information (this message)

      //-attributes 設置 屬性的字符串. 缺陷程序中有各種靜態聲明的固定長度的緩沖區。另外,對命令行參數、服務器的響應頭和其他外部輸入的解析也很簡單,這可能會有不良后果。它沒有完整地實現HTTP/1.x; 僅接受某些'預想'的響應格式。 strstr(3)的頻繁使用可能會帶來性能問題,即, 你可能是在測試ab而不是服務器的性能。

      參數很多,一般我們用 -c 和 -n 參數就可以了. 例如:

      ./ab -c 1000 -n 1000 http://127.0.0.1/index.php

      這個表示同時處理1000個請求并運行1000次index.php文件.

      #/usr/local/xiaobai/apache2054/bin/ab -c 1000 -n 1000 http://127.0.0.1/index.html.zh-cn.gb2312

      This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0

    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>