http://studiogang.blog.51cto.com/505887/386852
[[email protected] 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
[[email protected] ~]# ab -n 9000000 -c 999 http://192.168.1.112:8080/index.php
- /*大家最关心的指标之一,指的是吞吐率
- 相当于 LR 中的 每秒事务数 ,后面括号中的 mean 表示这是一个平均值*/
- Requests per second: 13.45 [#/sec] (mean)
- /*大家最关心的指标之二,指的是用户平均请求等待时间
- 相当于 LR 中的 平均事务响应时间 ,后面括号中的 mean 表示这是一个平均值*/
- Time per request: 743.726 [ms] (mean)
- /*大家最关心的指标之三,指的是服务器平均请求处理时间
- Time per request: 74.373 [ms] (mean, across all concurrent requests)
测并发访问数
netstat -an | grep ESTABLISHED | wc -l
时间: 2025-01-09 03:54:58