The JMeter is an application that can be used as an interface for stress performance, which is pure Java voice development, all of which are better for environmental support.
There are two types of jmeter that can be run, one is UI graphics, and the other is Command mode, which is non-GUI mode. The difference between the two models is still quite large.
GUII: Because it is a graphical interface, so at run time will consume a lot of resources, and the graphical interface runtime results are saved in JMeter running memory, if it is to do long performance test, memory will occupy very high, first of all, affect the accuracy of performance results, and then when the memory growth to a certain extent, will be error, It may even appear that the card is dead. 1
Non-GUII: Command mode operation can save the real-time log file to local, the location can be customized, does not occupy too many machine resources, can run for a long time.
Non-GUI run commands section:
-H help print out useful information and exit
-N Non-GUI mode run JMeter in non-GUI mode
-t test file, JMeter test script file to run
-l result file path--records the resulting file, the path does not exist when it is automatically created in the format JTL or CSV
-R remote execution All remote servers specified in the Jmter.properties file
-R remote execution, execution of the specified server
-j does not automatically create a path that does not exist when the execution log path is specified
-e Setup test report is generated after testing is completed
-G CSV result file---Specify test execution result file path, only for test report generation
-O Report Folder path--Execute test Report generation folder, folder must be empty or not present
-H Proxy Host IP---set the proxy host used by JMeter
-P proxy port number, setting the port number of the proxy host used by JMeter
non-GUI run example:
Jmeter-h
Gets the command help for JMeter
Jmeter-n-T TEST.JMX
Run the test.jmx file in command mode
Jmeter-n-T test.jmx-l report\01-result.csv-j Report\01-log.log
The meaning is: Run test test file in command mode and save the result and log file, note that if the log path does not exist will not be automatically created, and the log output in the Command Line window, the resulting file can be in the JMeter graphical interface under the aggregation report to import the results file for viewing.
Jmeter-n-T Test.jmx-r-l REPORT\01-RESULT.CSV-J Report\01-log.log
This means: Run test test files and save the results and log files from all the servers configured in Remote_hosts in command mode, note that the log files on the execution side are generated by default in the user directory
Jmeter-n-T test.jmx-r 192.168.21.40:1029-l report\01-result.csv-j Report\01-log.log
Remote call to 192.168.21.40 Server in command mode runs test test file and saves results and log files
JMeter non-GUI interface operation