Home > Database > Mysql Tutorial > Apache服务器下使用 ab 命令进行压力测试

Apache服务器下使用 ab 命令进行压力测试

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:09:06
Original
991 people have browsed it

ab是Apache超文本传输协议(HTTP)的性能测试工具。 其设计意图是描绘当前所安装的Apache的执行性能,主要是显示你安装的Apache每秒可以处理多少个请求. #ab -v可以看出其基本信息 #ab -n1000 -c10 :81/t.php 这是一个基本命令 -n1000表示总请求数为1000 -才0

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

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

#ab -n1000 -c10 :81/t.php

这是一个基本命令

-n1000表示总请求数为1000

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

Apache服务器下使用 ab 命令进行压力测试  三联

参数说明:

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

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Apache automatically stops
From 1970-01-01 08:00:00
0
0
0
apache restart failed
From 1970-01-01 08:00:00
0
0
0
apache error
From 1970-01-01 08:00:00
0
0
0
How apache logs
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template