Jmeter stepped equivalent pressure measurement-detailed practical tutorial (1)

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!

  1. 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 addresshttps://jmeter.apache.org/download_jmeter.cgi
  2. 命令行Enter the root directory of Jmeter, enter the bin folder to sh jmeter.shstart Jmeter's GUI interface, as shown in the figure
    Command letter enter jmeter
    Jmeter GUI interface
    Tips: If you are sensitive to English, you can option-choose language-chinese(simplified)switch to Chinese at the top
  3. Enter the theme, download the stepped pressure test plug-in jarpackage, download the address https://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)
    Insert picture description here
    4. re-use the command line to open Jmeter, view and add just stepped pressure measuring jar package
    Insert picture description here
    5. The interface as shown, the way to do some analysis parameters
    Insert picture description here
    mainly Analyze the content in Threads Scheduling Parameters,
  • This group will start xxthreads: This group will start xx threads
  • First, wait for xxseconds: First, wait for xx seconds
  • Then start xxthreads: Then, start xx threads
  • Next, add xxthreads every xxseconds using ramp-up xxseconds: 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-casutgis 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
Insert picture description here

  • 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! !

Guess you like

Origin blog.csdn.net/weixin_44425934/article/details/106897217