Performance Testing Using JMeter in Non-GUI Mode


Performance Testing Using JMeter in Non-GUI Mode


Apache JMeter, the popular open source performance testing tool, can be run in non-gui mode using command prompt.One of the way to resolve java.lang.OutOfMemoryError is by running Jmeter in non-gui-mode. Follow the steps below to run jmeter in non gui mode,

1. Open Jmeter (in gui mode) and prepare test plan for load testing with no of users/threads. Save it as jmx file (eg: test500.jmx).

Note: Avoid adding listeners in the test plan since reports can be generated from jtl file generated in non-gui run.



2. Open command prompt (Run>>cmd) and change directory to bin folder of apache-jmeter. Type the  following command to run jmeter with the saved testplan (test500.jmx).

Jmeter –n –t “path to jmx file “ –l “path to jtl file”

Eg :  D:\JMeter\apache-jmeter-2.11\bin>jmeter -n -t D:\JMeter\TestNonGUI.jmx -l D:\JMeter\Testresults\test500.jtl




Load teting will start and test results will be stored in test500.jtl file.

3.  To analyse the results. Open JMeter and add the listener test element by which you want to analyse it. Eg: To view summary report add summary report listener element as child set jtl file (test500.jtl).


3 comments:

  1. Hi,

    Sorry to hijack this thread, i am in to first semester for BITS WILP. Request your help, if you can share your solved question papers for the 1st semester, DSA, OOAD, DBMS & SA (Open Book).

    Please let me know if i can reach you, my email ravihl@gmail.com

    Appreciate your help.

    Thanks,
    Ravi

    ReplyDelete

  2. Thank you for an enjoyable blog, I look forward to more of the same in 2017.
    หนังฝรั่ง

    ReplyDelete
  3. Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.
    wordpress web design

    ReplyDelete