Use JMeter to stress test the system-from configuration to test

For high-concurrency projects, stress testing is an estimate of the amount of concurrency that the system can withstand. During the development process, it can help developers clearly understand the actual capacity of the project, and continue to optimize to meet the requirements of high concurrency.

1. Prerequisites
Apache JMeter is a Java-based stress test tool developed by the Apache organization. Used for stress testing of software. It was originally designed for web application testing, but later expanded to other testing areas. Because JMeter is written in JAVA, install the JAVA environment before using JMeter.
(1) Check the java environment
Insert picture description here
(2) Install jMeter.
JMeter download address: directly download it on the official website http://jmeter.apache.org/ .
(3) Start JMeter and
find the bin file of the file package, and click the jmeter.bat file to start it.
Insert picture description here
Choose Sinicization
Insert picture description here
2. Test
(1) First create a thread group
Insert picture description here
(2) Set a one-time 1000 concurrency
Insert picture description here
(3) Add http request
Insert picture description here
(4) Add a listener
Add aggregate report here and view the result tree
Insert picture description here
(5) Start, view the result tree
Insert picture description here
The throughput here is an important criterion to measure the pressure of the system. The value requirement indicates that the higher the capacity of the system!

Guess you like

Origin blog.csdn.net/Wangdiankun/article/details/106662158