1. Introduction to Apache Bench ApacheBench is a web stress testing tool that comes with the Apache server, referred to as ab. ab is also a command line tool that has very low requirements for the local machine that initiates the load. According to the ab command, many concurrent access threads can be created to simulate multiple visitors accessing a certain URL address at the same time. Therefore, it can be used to test the load pressure of the target server. In general, the ab tool is small and simple, easy to learn, and can provide the basic performance indicators you need, but it does not have graphical results and cannot be monitored. 2. Apache Bench Installation First, you need to install the Apache server. Download address: https://www.apachelounge.com/download/. For a 64-bit operating system, select one of the compressed packages above. Install Ubuntu 1: Use apt to install online: sudo apt install apache2-utils 2: Check whether the installation is successful: ab -V Common parameter description Test report interpretation example (1) Simulate 100 client requests: ab -n 100 http://www.example.com/ (2) Simulate 100 client requests 10,000 times: ab -n 10000 -c 100 http://www.example.com/ (3) Call the POST method interface 10 times, and the data format transmitted is JSON: ab -n 10 -p json-file http://www.example.com/ (4) Call the OPTIONS method interface 10 times: ab -n 10 -m OPTIONS http://www.example.com/ (5) Output the response information for each request: ab -n 10 -v 2 http://www.example.com/ Precautions
The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Native JS to achieve special effects message box
>>: MySQL database account creation, authorization, data export and import operation examples
Background: During the development process, we of...
1. Download MySQL Community Server 5.7.16 and ins...
Preface The computer I use is a Mac, and the oper...
Problem background: When using docker to deploy t...
The Swap partition of the Linux system, that is, ...
This article mainly introduces the installation/st...
1. Check the firewall status Check the firewall s...
1. Linux network configuration Before configuring...
Table of contents Global variable globalData Page...
Table of contents 1. Install the proxy module 2. ...
Install pymysql pip install pymysql 2|0Using pymy...
Table of contents 1:mysql execution process 1.1: ...
Table of contents Preface 1. MySQL enables SSL co...
Introduction The meta tag is an auxiliary tag in ...
Preface Let’s take a look at the final effect fir...