zoukankan      html  css  js  c++  java
  • ab测试

    http://studiogang.blog.51cto.com/505887/386852

    [root@zzx bin]# ab -V
    This is ApacheBench, Version 2.3 <$Revision: 655654 $>
    Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
    Licensed to The Apache Software Foundation, http://www.apache.org/

    ab的位置在/usr/bin/ab

    [root@bogon ~]# ab -n 9000000 -c 999 http://192.168.1.112:8080/index.php 

    1. /*大家最关心的指标之一,指的是吞吐率
    2. 相当于 LR 中的 每秒事务数 ,后面括号中的 mean 表示这是一个平均值*/  
    3. Requests per second:    13.45 [#/sec] (mean)
    4. /*大家最关心的指标之二,指的是用户平均请求等待时间
    5. 相当于 LR 中的 平均事务响应时间 ,后面括号中的 mean 表示这是一个平均值*/ 
    6. Time per request:       743.726 [ms] (mean)
    7. /*大家最关心的指标之三,指的是服务器平均请求处理时间
    8. Time per request:       74.373 [ms] (mean, across all concurrent requests)  

    测并发访问数

    netstat -an | grep ESTABLISHED | wc -l

    Linux 使用ss命令代替 netstat

  • 相关阅读:
    2015-04
    2014-12
    2014-9
    nginx中ngx_http_ssl_module模块
    nginx中ngx_http_gzip_module模块
    Nginx中ngx_http_log_module模块
    Nginx中ngx_http_auth_basic_moudel和ngx_http_stub_status_module模块
    nginx中ngx_http_access_module模块
    nginx中ngx_http_core_module模块
    Nginx安装
  • 原文地址:https://www.cnblogs.com/hanxing/p/5756183.html
Copyright © 2011-2022 走看看