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
Table of contents Overview Global hook function R...
Image tag : <img> To insert an image into a ...
When we install and configure the server LNPM env...
Check the Python version python -V If it is below...
Table of contents 1. Basic use of axio 2. How to ...
Table of contents background Technical Solution S...
Windows 10 now supports Linux subsystem, saying g...
Table of contents Preface 1. What is a closure? 1...
Before starting the main text, I will introduce s...
Table of contents Preface Local storage usage sce...
Many tables in MySQL contain columns that can be ...
Main library execution CREATE DATABASE test CHARA...
docker-compose.yml version: '2' services:...
Preface In the process of using MySQL database, i...
1. Tools directory file structure [root@www tools...