Running JMeter in non GUI mode and viewing results


Some times it is necessary to ensure that memory usage of the server in which you are running JMeter does not effect the test. To achieve this we can run the test in non GUI mode as below


Step 1
Start JMeter in command line mode as below:

jmeter -n -t D:\TestScripts\script.jmx -l D:\TestScripts\file name

To ensure the script will run even when the terminal is closed
nohup sh jmeter.sh -t  script1.jmx -n -l resultsheet.csv & 

-n means to run in non GUI mode,
-t means the location and name of your test script jmx file
-l means the location of the log file where the results will be logged.

Note: save the results file in a jtl file extension. Read more on http://wiki.apache.org/jmeter/JtlFiles

Comments