Tuesday, 6 May 2014

Run JMeter – GUI Mode | Server Mode| Non GUI


We can run JMeter in 3 modes:
  • GUI Mode
  • Server Mode
  • NON GUI or command line mode

GUI Mode:
Run JMeter in GUI mode by running the JMETER_HOME/bin/jmeter.bat


GUI appearance

Server Mode
This mode is used to for distributed testing; it follows client-server architecture
Client - the system running Jmeter GUI, which controls the test
Server – the system running jmeter-server, which takes commands from the GUI and send requests to
the target system(s)
Target– the webserver we plan to Stress/Load test

We can start the JMeter server component by running the JMETER_HOME/bin/jmeter-server (unix) or JMETER_HOME/bin/jmeter-server.bat (windows)


NON GUI - Command line mode
We can run JMeter in command line mode as:

  • Open command prompt
  • Navigate to JMETER_HOME/bin directory
  • Run the following cmd

jmeter -n -t scriptname.jmx -l filename.jtl

-n, --nongui (run JMeter in nongui mode)
-t, --testfile <argument> (the jmeter test(.jmx) file to run)
-l, --logfile <argument> (the file to log samples to)


No comments:

Post a Comment