jmeter multi-machine joint load

Steps are as follows:
1, Jmeter deployed on the load machine, ensure that there is ApacheJMeter.jar and jmeter-server.bat two files in the bin directory Jmeter.
2, double-click to start the program load jmeter-server.bat machine.
3, find jmeter.properties file and modify the "remote_hosts", increasing the load machine IP, multiple IP comma separated in the bin directory Jmeter control machine, modified to restart Jmeter. As shown below:
4, into the machine control Jmeter GUI graphical interface, click, automatically detect Jmeter control, as long as the first start Agent on the remote machine load, at the start of the test program will run their own load is connected machine to complete. 

5, non-GUI run the following command:

JMeter -n -t script path generation path -R ip -l jtl  

Note:. * Jtl can not be repeated

jmeter command-line tool part Parameters:
-n: running non-GUI mode.
-t: Specifies the run test scripts address and name, can be relative or absolute path
-h: View Help
-v: View version
-p: Specifies a file read Jmeter properties, such as the file set jmeter.properties
-l: record test results to a file, specify the name and path can be relative or absolute path
-s: server to run (remotely)
-r: remote load machine is turned on, the remote machine load list specified in the file jmeter.properties
-R: Open remote load unit, the load can be specified local IP, overrides the setting of jmeter.properties
-L: log level Jmeter defined as DEBUG, INFO, ERROR, etc.
-H: set the proxy IP
-P: set the proxy port
-u: set the proxy account
-a: Setting proxy account password
-X: stop the remote execution
-J: Jmeter defined properties, equivalent to setting in the jmeter.properties
-G: Jmeter defined global attribute, equivalent to Global.properties provided, each can be shared among threads
 
Note: Non-GUI multi-machine joint load, machine control reasons can not call the load machine
1, jmeter inconsistent versions
2, the load machine did not start bat
3, csv files are not copied to the parameters of the load machines in the same position with the same name
4、主控机没有配置负载机的ip
5、jmeter.properties文件修改后,没重启jmeter

 

Guess you like

Origin www.cnblogs.com/magicYJ/p/11854833.html