Configuring JMeter Part 5 - How to configure Results?

In this article we are going to see how can we change property of JMeter.
Jmeter has a very big number of properties. In this section we will see the result / report settings mention in jmeter.propertie.

In the jmeter installed bin directory(in my case C:\apache-jmeter-2.8\bin), we get a file named jmeter.properties. Open this with note pad. We can find various properties which are activated and some are not yet activated.

-To set results file type(xml/csv)
jmeter.save.saveservice.output_format=xml

-To set encoding (default ISO-8859-1)
sampleresult.default.encoding=ISO-8859-1

-To set saving parameters [True parameters will be saved]

jmeter.save.saveservice.assertion_results_failure_message=false[Only for CSV]
jmeter.save.saveservice.assertion_results=none
jmeter.save.saveservice.data_type=true
jmeter.save.saveservice.label=true
jmeter.save.saveservice.response_code=true [Not for CSV]
jmeter.save.saveservice.response_data=false [Save Response Data on fail]
jmeter.save.saveservice.response_data.on_error=false
jmeter.save.saveservice.response_message=true
jmeter.save.saveservice.successful=true
jmeter.save.saveservice.thread_name=true
jmeter.save.saveservice.time=true
jmeter.save.saveservice.subresults=true
jmeter.save.saveservice.assertions=true
jmeter.save.saveservice.latency=true
jmeter.save.saveservice.samplerData=false
jmeter.save.saveservice.responseHeaders=false
jmeter.save.saveservice.requestHeaders=false
jmeter.save.saveservice.encoding=false
jmeter.save.saveservice.bytes=true
jmeter.save.saveservice.url=false
jmeter.save.saveservice.filename=false
jmeter.save.saveservice.hostname=false
jmeter.save.saveservice.thread_counts=true
jmeter.save.saveservice.sample_count=false
jmeter.save.saveservice.idle_time=false
jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss.SSS[our choice]
jmeter.save.saveservice.default_delimiter=\t[For TAB character separator for CSV, a comma , is also accepted]
jmeter.save.saveservice.print_field_names=false [CSV only]

-To see results with Nano Second Parameter
sampleresult.useNanoTime=true

-To disable the background thread[result threads]
sampleresult.nanoThreadSleep=-1
Note: Values >=0 will keep the thread sleep (Nano Second Unit.)

-To Save the start time stamp (Instead of the end)[Effective for result files also]
sampleresult.timestamp.start=true

-To save list variable names with values in the result data files, we use commas to separate the names.
sample_variables=SESSION_ID,REFERENCE
[Note :  Currently it saves the values in XML as attributes,so the names must be valid XML names]

-To set network response size in calculation method
Note : Size = Number of bytes for response body return by web server. If it is false, the (uncompressed) response data size will used (default before jmeter 2.5)
Include headers: Add the headers size in real size
sampleresult.getbytes.body_real_size=true
sampleresult.getbytes.headers_size=true

-To set Prefix to identify file names that are relative to the current base
jmeter.save.saveservice.base_prefix=~/

This will be long post as all specification depends on client. I will try to add more from further experiences. 

..Thanks...:)

2 comments:

  1. Hi,
    Even after all optimization my jtl file size is around 4GB.
    Can you please suggest any method to process jtl file and generate nice load report for analysis purpose.

    I am getting out of memory error while processing it as described in ant configuration. Xmx size is configured as 6GB

    ReplyDelete
    Replies
    1. 1. Try to store less item in JTL (configure what you need)
      2. use CI plugins to execute long running test (performance plugins (jenkins) or taurus(https://github.com/Blazemeter/taurus)) for continuous data feed and read.
      3. If you still need to read 4GB jtl , use 12Gb+ heap with multi threaded jtl reader , so that your VM dont get crashed.

      Delete