How to print 95 and 99 Percentiles in the jmeter aggregate report command line?

user6348718 picture user6348718 · Jan 19, 2017 · Viewed 8.4k times · Source

I am trying to print 95 Percentile and 99 Percentile response times in the jmeter aggregate report from the command line For this, I have tried the solution mentioned in here: Jmeter: Generating aggregate report through commnd line is not including 95% and 99% line in generated report but that didn't work. I have tried editing the jmeter.properties file too. Also, the other solution that I came across is to generate the ResponseTimesPercentiles graph using CMDRunner.jar in csv format but that gives all the values from 0-99.9 which I don't need. So is there a way I can customize the csv file to just have ReponseTimesPercentiles for desired values?

Also tried this command:

java -jarCMDRunner.jar --tool Reporter --generate-csv test.csv --input-jtl results.jtl --include-labels aggregate_report_99%_line --plugin-type AggregateReport

which didn't work. So, is there any way that I can generate the 95% and 99 Percentiles in the aggregate report

Answer

Dmitri T picture Dmitri T · Jan 19, 2017

The functionality is available by default starting from JMeter version 2.13

JMeter 90, 95, 99 percentiles

The behavior is controllable via the following properties:

aggregate_rpt_pct1=90
aggregate_rpt_pct2=95
aggregate_rpt_pct3=99

If you don't see percentiles like at the above image in your Aggregate Report - add the above lines to user.properties file.

NB:

  • The approach won't work on JMeter versions earlier than 2.13
  • JMeter restart will be required to pick the properties up, dynamic changes won't work.