博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Apache服务器下使用 ab 命令进行压力测试
阅读量:1982 次
发布时间:2019-04-27

本文共 547 字,大约阅读时间需要 1 分钟。

 ab是Apache超文本传输协议(HTTP)的性能测试工具。 其设计意图是描绘当前所安装的Apache的执行性能,主要是显示你安装的Apache每秒可以处理多少个请求.

#ab -v可以看出其基本信息

#ab -n1000 -c10  

这是一个基本命令

-n1000表示总请求数为1000

-才0表示并发用户数为10

参数说明:

Concurrency Level:并发用户数;

Time taken for tests:请求处理花费的总时间;

Complete requests:总请求数;

Failed requests:失败的请求数;

Total transferred::所有请求响应数据长度总和;

HTML transferred:所有请求响应数据中正文数据总和;

Requests per second:是我们很关注的一个数据,有人称作“吞吐率”,Requests per second=Complete requests/Time taken for tests

Time per request:平均请求等待时间;

Transfer rate:这些请求在单位时间从服务器获取的数据长度。

ab -c l -n 10000 http://127.0.0.1/index.html

转载地址:http://bxwvf.baihongyu.com/

你可能感兴趣的文章
【学习笔记】英文科技论文常见英语句式积累
查看>>
【深度学习笔记】PixelShuffle
查看>>
【python3学习笔记】斜杠和双斜杠运算符的区别
查看>>
【深度学习笔记】torch.nn.Sequential(* args) 与 torch.nn.Module
查看>>
【深度学习笔记】用torch.nn.Sequential()搭建神经网络模型
查看>>
【深度学习笔记】用torch.nn.ModuleList搭建神经网络
查看>>
【解决错误】AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘
查看>>
【解决错误】复现RCAN的时候遇到了ImportError: cannot import name ‘_update_worker_pids’ from ‘torch._C’
查看>>
【解决错误】ModuleNotFoundError: No module named ‘skimage‘
查看>>
【深度学习笔记】pytorch的点乘(dot product)
查看>>
【深度学习笔记】残差
查看>>
【错误解决】cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\sr
查看>>
【python学习笔记】读取指定文件夹中的图片,结合边缘保留滤波EPF
查看>>
【工具和环境】Linux下安装pycharm
查看>>
【Accumulation】The last two sentences of the abstract
查看>>
【Accumulation】The definition of SISR
查看>>
【工具与环境】Windows下安装Sublime Text 3
查看>>
【解决错误】ValueError: some of the strides of a given numpy array are negative.
查看>>
【工具与环境】Excel中批量插入行
查看>>
【个人实验注意事项】
查看>>