zoukankan      html  css  js  c++  java
  • appache压力测试

    apache自带压力工具测试说明:

    Usage: ab [options] [http[s]://]hostname[:port]/path
    Options are:
    -n requests Number of requests to perform                    请求数
    -c concurrency Number of multiple requests to make at a time      并发数
    -t timelimit Seconds to max. to spend on benchmarking
    This implies -n 50000
    -s timeout Seconds to max. wait for each response
    Default is 30 seconds
    -b windowsize Size of TCP send/receive buffer, in bytes
    -B address Address to bind to when making outgoing connections
    -p postfile File containing data to POST. Remember also to set -T
    -u putfile File containing data to PUT. Remember also to set -T
    -T content-type Content-type header to use for POST/PUT data, eg.
    'application/x-www-form-urlencoded'
    Default is 'text/plain'
    -v verbosity How much troubleshooting info to print
    -w Print out results in HTML tables
    -i Use HEAD instead of GET
    -x attributes String to insert as table attributes
    -y attributes String to insert as tr attributes
    -z attributes String to insert as td or th attributes
    -C attribute Add cookie, eg. 'Apache=1234'. (repeatable)
    -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.

    [cxy@localhost-live ~]$ sudo ab -n 800 -c 800 http://xxx-xxx-xxx-xxx/

    This is ApacheBench, Version 2.3 <$Revision: 1796539 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/

    Benchmarking 10.75.9.93 (be patient)
    Completed 100 requests
    Completed 200 requests
    Completed 300 requests
    Completed 400 requests
    Completed 500 requests
    Completed 600 requests
    Completed 700 requests
    Completed 800 requests
    Finished 800 requests


    Server Software: Apache/2.4.27
    Server Hostname: 10.75.9.93
    Server Port: 80

    Document Path: /newstart-zte/
    Document Length: 1593 bytes

    Concurrency Level: 800
    Time taken for tests: 0.854 seconds
    Complete requests: 800
    Failed requests: 0
    Total transferred: 1421600 bytes
    HTML transferred: 1274400 bytes
    Requests per second: 937.15 [#/sec] (mean)
    Time per request: 853.656 [ms] (mean)
    Time per request: 1.067 [ms] (mean, across all concurrent requests)
    Transfer rate: 1626.28 [Kbytes/sec] received

    Connection Times (ms)
    min mean[+/-sd] median max
    Connect: 0 3 2.7 5 7
    Processing: 10 171 190.3 48 845
    Waiting: 10 171 190.3 48 845
    Total: 17 174 191.7 50 850

    Percentage of the requests served within a certain time (ms)
    50% 50
    66% 229
    75% 283
    80% 307
    90% 482
    95% 511
    98% 837
    99% 842
    100% 850 (longest request)

  • 相关阅读:
    侧方停车 成功50% 一把进不去 出去二把进
    在Windows上使用 Python 安装+ win10启用长路径
    无锡 苏州 上海 古镇 汇总20200129
    win10家庭版升级 到win10企业版
    WPS Office 2019 v11.8.2.8053地方企业版 2016 v10.8.2.6948
    WPS2019党政机关单位版(无广告困扰)
    自用Chrome插件推荐【附教程及下载】
    转载 https://www.cnblogs.com/bobo-pcb/p/11708459.html
    HDU1302_Snail【模拟题】【水题】
    how to add Javascript and CSS in page layout with sharepoint 2013
  • 原文地址:https://www.cnblogs.com/noxy/p/9356392.html
Copyright © 2011-2022 走看看