zoukankan      html  css  js  c++  java
  • 使用http_load网站压力测试

    http_load用以测试web服务器的吞吐量与负载。但是它不同于大多数压力测试工具,

    它可以以一个单一的进程运行,一般不会把客户机搞死。它可以自定义测试的URL列表

    下载:http://acme.com/software/http_load/

    安装:

    解压后只要 make , make install 就行了

    环境: 需要gcc  如果是在服务器上安装的话还需要有sudo

    执行命令:

    ./http_load --help
    usage:  ./http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip sip_file]
                -parallel N | -rate N [-jitter]
                -fetches N | -seconds N
                url_file
    One start specifier, either -parallel or -rate, is required.
    One end specifier, either -fetches or -seconds, is required.
    4基本参数说明

    -parallel 简写-p :含义是并发的用户进程数。
    -fetches 简写-f :含义是总计的访问次数
    -rate    简写-r :含义是每秒的访问频率
    -seconds简写-s :含义是总计的访问时间

    最后一个参数是你要测的url列表文件


    使用举例:

    ./http_load -parallel 200 -fetches 10000 url.txt    (URL文件:url.txt,文件格式是每行一个URL)   ,结果如下:

    10000 fetches, 200 max parallel, 5.5825e+06 bytes, in 3.27281 seconds
    558.25 mean bytes/connection
    3055.48 fetches/sec, 1.70572e+06 bytes/sec
    msecs/connect: 3.08039 mean, 1000.24 max, 0.028 min
    msecs/first-response: 47.4425 mean, 1637.25 max, 0.512 min
    HTTP response codes:
      code 200 -- 10000


  • 相关阅读:
    Kubernetes Admission
    kops文章
    eks文章
    AWS CloudFormation
    AWS Secrets Manager
    如何在C# WinForm 程序中使用WebBrowser控件时设置COOKIE的值。
    Windows Server 2008 服务器核心(Serve Core)实战2
    让IIS支持WAP站点。
    C#中的委托,匿名方法和Lambda表达式(转载)
    数据库状态回复指令。
  • 原文地址:https://www.cnblogs.com/dailidong/p/7571202.html
Copyright © 2011-2022 走看看