JMeter online load and problem solving

Main control machine: The machine storing the JMeter script is called the main control machine Load machine: The machine that is connected and used to run the script is called the load machine. Operation steps:

1. Modify the main control machine, The remote_hosts information in the JMeter.properties file in the bin directory of the JMeter installation directory, remove the comment, replace localhost with the ip of the load machine, the port default is 1099,

Notes: (1) You can add more Each load machine is separated by English commas

(2) The online port can be modified

(3) If the script contains CSV files, external jar packages, etc., they must be copied to the remote Under the same designated directory of the load machine

(4) The script does not need to be copied, and the master control machine will send the script to the load machine.

2. The load machine opens JMeter-server.bat

3. On the master machine, start JMeter, and then select remote start when running, select a load machine ip, or Start all remotely

Thread attributes:

1. As shown in the figure below: each load machine will run 10 threads and start 10 threads per second. Two load machines run 20 times

2. Scenario requirements: 2 load machines run 100 times in total, starting 5 threads per second

The formula is as follows:

< p>Number of threads started per second=Number of threads/Ramp-Up Period (in seconds)*Number of load machines

List of problems encountered during configuration and testing

No load machine

1. Check whether the ip of the load machine and the main control machine can be pinged. 2. Check whether the load machine’s firewall is closed. 3. Check whether the jmeter agent (jmeter-server.bat) is running on the load machine. ) 4. If there is a parameterization file on the script of the master control machine, then there must be a parameterization file ps in the same location of the load machine: a simple and crude method to see if there are multiple network cards on the load machine, there is really no way. Disable all other network cards, then you can connect and start.

Leave a Comment

Your email address will not be published.