Tuesday 17 May 2016

JMeter Non-GUI Mode

You might want to run JMeter in non-GUI mode if you're running distributed tests or if you want to minimise the overhead on your test execution machine. You would use the GUI when you're preparing your scripts and configuring your test plan and when you're running a light load performance test but for heavy load you might consider running in non-GUI mode.

The following command line options are available:

-n - Run in non-GUI mode
-t - Name of the Test Plan jmx file to execute
-l - Name of the JTL file to which log results to
-j - Name of the JMeter run log file
-r - Runs the test remotely on the servers listed in the remote_hosts property
-R - Runs the test remotely on the specified servers

As an example:

jmeter.bat -n -t StressTest.jmx -l StressTestResults.jtl -r


If you're operating behind a firewall then you may need to configure JMeter to work with it. You can use the following command line options to configure the proxy settings:

-H - The proxy server name
-P - The proxy port
-u - A username if the proxy is secured
-a - The password of the user if the proxy is secured

As an example:

jmeter.bat -H some.proxyserver -P 8090 -u ProxyUser -a ProxyPassword

No comments:

Post a Comment