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
(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.
Choose Sinicization
2. Test
(1) First create a thread group
(2) Set a one-time 1000 concurrency
(3) Add http request
(4) Add a listener
Add aggregate report here and view the result tree
(5) Start, view the result tree
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!