JMeter in GUI mode consumes much computer memory. For saving resource, you may choose to run JMeter without the GUI. If we are running multiple listeners in a script, it affects the JMeter performance.
Why to use JMeter in Non GUI/command line mode:
- Avoid Crash: Increasing threads due to which JMeter crashes in the GUI mode.
- Complex Scenarios: JMeter consumes memory and CPU and it may affect your test results.
- Increase JMeter capabilities: To get more requests per second.
Follow below command to run JMeter in command line mode
C:\apache-jmeter-4.0\bin>jmeter -n -t test.jmx
There are following command line option
-n: It specifies JMeter is to run in non-gui mode.
-t: Name of JMX file that contains the Test Plan.
-l: Name of JTL(JMeter text logs) file to log results.
-j: Name of JMeter run log file.
-R: list of remote servers.
-H: proxy server hostname or ip address.
-P: proxy server port.
Note: If you are getting warning could not open/create pref root node. Follow This Link.
- Log in to post comments