This article will provide an easy way to capture response data from Apache JMeter™. By default, the response data from JMeter samplers is not stored in the JTL file. The reason is that response data tends be of large volume, which in turn might create a huge JTL file, even for a relatively small test.
However, for debugging purposes, it may be necessary to capture a sampler's response data. To accomplish this, set the following JMeter properties in your BlazeMeter test:
- mode: Standard
- jmeter.save.saveservice.response_data: true
- jmeter.save.saveservice.response_data.on_error: true
- jmeter.save.saveservice.response_message: true
After the test is completed, open the jtls_and_more.zip file from the logs tab:
Unzip the and open the sample.jtl in JMeter's View Results Tree Listener. The samplers are listed. When selected, the response data can be examined.
The samplers show the response data necessary for debugging. When done, make sure to remove the listed JMeter properties from the BlazeMeter test, to prevent the JTL file from becoming huge and having a negative impact on the test performance.
If you want to learn more JMeter, sign up to our free JMeter academy.