JMeter utilizes more memory and resources if you add listeners to your high load test. In order to lessen the resource utilization for greater performance, you need to run JMeter tests in cmd prompt and generate the required results after the execution.
How to run JMeter tests in cmd prompt?
- Open command prompt
- Go to the folder where you installed JMeter and type below command. This executes the script in non-GUI mode.
jmeter -n -t <your_script_path.jmx>
How to generate results after the execution in JMeter?
- Add one more parameter to above command which stores the results in *.JTL file as shown below.
jmeter -n -t <your_script_path.jmx>-l <path_to_store_results_file.jtl>
After testing is complete, you can find the *.jtl file in the specified path. Now launch JMeter with GUI and add any listener to WorkBench/TestPlan. You can add any listener and generate the report.
By default, JMeter do not save threads count in JTL files. If you plan to work with JMeter JTL files, you should enable it by uncommenting in JMETER-INSTALL-DIR/bin/jmeter.properties the line and set it to TRUE.
Thanks for visiting QAInsights! Check out our new portal Testifications.com to get updates on Software Testing related certifications. We’re always posting interesting articles on QAInsights. I request you to subscribe so you don’t miss out anything.
Searching for QA Jobs Openings, check it at www.QAJobOpenings.com
Want to start a blog like this, please visit SpidyDomain to buy cheap web hosting and register domain.
- Brotli Compression in Performance Testing - October 6, 2017
- Unboxing HPE StormRunner 2.7 - September 27, 2017
- What’s new in Apache JMeter 3.3? - September 25, 2017
- Measuring Client-side performance using Performance APIs - September 19, 2017
- Unboxing HPE LoadRunner 12.55 - August 20, 2017