1. Download the jmeter

  • Open your browser to jMeter’s official website

  • Click on the Download Releases link on the left

  • Click on the [apache-jmeter-5.4.1.zip] link under Binaries to start the download

2. Install the jmeter

  • Copy the downloaded package to the installation directory and decompress it to go to the JMeter home directory

  • Go to the bin directory

  • Double-click apachejmeter.jar to run JMeter

3. Use of JMeter

  • Adding a thread Group

Right click on “Test Plan” -> “Add” -> “Thread (User)” -> “Thread Group”

  • Set the thread group name, number of threads, ramp-up cycles, scheduler, and other parameters

Description of thread group parameters: 1) Number of threads: indicates the number of virtual users. A virtual user occupies a process or thread. Set the number of virtual users and in this case, set the number of threads. 2) Ramp-up time (s) : how long it takes for the specified virtual users to start Up. If the number of threads is 10 and the preparation time is 2, it takes 2 seconds to start 10 threads, or 5 threads per second. 3) Number of loops: the number of requests sent per thread. If the number of threads is 10 and the number of loops is 100, then each thread sends 100 requests. The total number of requests is 10 x 100=1000. If “always” is checked, all threads will continue to send requests and stop running the script as soon as possible. 4) Delay thread creation until needed: Delay thread creation when needed. 5) Scheduler: set the start time and end time of the thread group startup (when configuring the scheduler, you need to check the cycle times to be forever) Duration (s) : test duration, which will overwrite the end time start delay (s) : test delay start time, which will overwrite the start time

  • Adding an HTTP Request

Right click on “Thread Groups” -> “Add” -> “Sampler” -> “HTTP Request”

  • Http request parameters:

The default value is HTTP. Server name or IP: name or IP address of the target server to which the HTTP request is sent port number: port number of the target server. The default value is 80. Methods for sending HTTP requests include GET, POST, HEAD, PUT, OPTIONS, TRACE, and DELETE. Path: Destination URL path (the rest of the URL after removing the server address, port, and parameters) content coding: 3) Send parameters with the request URL parameters sent in the request. You can set all parameters in the URL in this table. Each parameter in the table is one parameter (name=value in the URL). Note If the parameter is passed in Chinese, select “Encoding”.

  • Add view result tree

Right click on “Thread Groups” -> “Add” -> “Listeners” -> “View Result Tree”



  • Perform the test

Click the small green arrow button to start the test

  • Click yes to save the test plan. Click the small green arrow button again to start the test