Jmeter stepped equivalent pressure measurement-detailed practical tutorial
Lead: Almighty measured open road white -Jmeter
Author: become excellent white
Note: If you encounter something you don’t understand halfway, you can directly comment and leave a message, and you will immediately answer questions! ! !
Jmeter is the software that I think is the most cost-effective in performance testing. This time it is mainly a stepped pressure test and TPS to implement a practical tutorial on a system or interface.
Not much to say, actual combat is the best!
- Download and install Jmeter, this one won’t introduce too much, download the tutorial Baidu is flying all over the sky~ Then I will throw an address
https://jmeter.apache.org/download_jmeter.cgi
命令行
Enter the root directory of Jmeter, enter the bin folder tosh jmeter.sh
start Jmeter's GUI interface, as shown in the figure
Tips
: If you are sensitive to English, you canoption-choose language-chinese(simplified)
switch to Chinese at the top- Enter the theme, download the stepped pressure test plug-in
jar
package, download the addresshttps://jmeter-plugins.org/downloads/old/
, and throw it into the jmeter root directory /lib/ext after downloading. I use the mac system, and the win system is the same. I believe you have noticed that this is an older version of the plug-in (Old)
4. re-use the command line to open Jmeter, view and add just stepped pressure measuring jar package
5. The interface as shown, the way to do some analysis parameters
mainly Analyze the content in Threads Scheduling Parameters,
- This group will start
xx
threads: This group will start xx threads - First, wait for
xx
seconds: First, wait for xx seconds - Then start
xx
threads: Then, start xx threads - Next, add
xx
threads everyxx
seconds using ramp-upxx
seconds: Then, add xx threads every xx seconds using xx seconds to complete the startup - Then hold load for xx seconds: then continue to run for xx seconds
- Finally, stop xx threads every xx seconds: finally stop xx threads every xx seconds
6. Here I personally recommend using the new version of the stepped pressure test plug-in, because the new version is optimized on the basis of the old version. The download address of the new version https://jmeter-plugins.org/?search=jpgc-casutg
is similar to the introduction in points 1-5 and will not be described in detail. The following is the new version of the stepped pressure test Concurrency Thread Group
, the GUI interface is as follows, analyze this
- Target Concurrency: target concurrency
- Ramp Up Time (min): complete startup time (minutes)
- Ramp-up Steps Count: Ramp-up Steps Count
- Hold Target Rate Time(min): Duration of the target concurrent number (minutes)
- Thread Iterations Limit: thread iteration limit is the number of cycles
- Log Threads Status into File: Record thread status into log file
Finally, you only need to add the system or interface that you need to pressure test~
Summary: If you have any questions or suggestions, you can leave a comment directly! I will reply one by one! !