ab command principle Apache's ab command simulates multi-threaded concurrent requests to test server load pressure. It can also test the pressure of other web servers such as nginx, lighthttp, and IIS. In the case of insufficient bandwidth, it is best to test locally. It is recommended to use another or multiple servers on the intranet to test through the intranet. The data obtained in this way will be much more accurate. Remotely stress testing a web server often does not produce satisfactory results (due to excessive network latency or insufficient bandwidth) Download and install: Find httpd-2.2.21-win32-x86-no_ssl.msi Parameter documentation: run: In Windows system, open the cmd command line window and locate the bin directory of the apache installation directory Type the command: ab -n 800 -c 800 http://192.168.0.10/ (-n sends 800 requests, -c simulates 800 concurrency, which is equivalent to 800 people accessing at the same time, followed by the test URL) ab -t 60 -c 100 http://192.168.0.10/ //If you need to include parameters in the url, do this p.txt is in the same directory as ab.exe Result parameter explanation: Benchmarking 192.168.0.10 (be patient)
Document Path: / Concurrency Level: 800
The response status of all requests in the entire scenario. In the scenario each request has a response time where 50% of the users have a response time of less than 571 milliseconds You may also be interested in:
|
<<: jQuery implements the drop-down box for selecting the place of residence
>>: Analysis of the principle of using PDO to prevent SQL injection
There are two situations 1. Start time and end ti...
This article example shares the specific code for...
Preface Nginx (pronounced "engine X") i...
ps: Here is how to disable remote login of root a...
Preface: In the previous article, we mainly intro...
This article shares the specific code of Vue to i...
A few days ago, I saw an example written by @Kyle...
This article uses an example to describe how to q...
Table of contents 1. Parent components and child ...
NULL and NOT NULL modifiers, DEFAULT modifier, AU...
There are some issues that are not limited to Vue...
(Win7 system) VMware virtual machine installation...
Table of contents 1. filter() 2. forEach() 3. som...
The detailed process of using MySQL database with...
This article shares with you the MySQL 8.0.17 ins...