Run JMeter in Non GUI/command line mode

Why to use JMeter in Non GUI/command line mode:
·         1. Increasing threads (after certain limit) due to which JMeter crashes in the GUI mode.
·         2.For heavy test scenarios JMeter consumes memory and CPU and it may affect your test results.
·         3.To increase JMeter capabilities, i.e. to get more requests per second.
Drawback while using Non GUI/command line mode execution:
·         Can not see the result which is pass & fail like view result tree.

How to start execution using Non GUI/command line mode:
1.       Open command prompt
2.       Go into JMeter’s bin folder through cmd.
3.       Enter following command, jmeter -n –t test.jmx -l testresults.jtl
-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
After execution open the jtl file through JMeter.

To check the heap memory
·         First check the system RAM memory: My Computer (Right click) -> Property-> RAM memory.
·         To check the JMeter Heap memory: C:\apache-jmeter-2.11\bin\jmeter (right click) -> Open in Notepad.

·         Check set HEAP=-Xms512m -Xmx1048m

Comments

Popular posts from this blog

How To Run JMeter GUI Mode In Ubuntu Servers

SELENIUM

Sql Basics With Examples