Search code examples
jmeterperformance-testing

JMeter: Total size of data sent and received


I use JMeter for API performance testing. One requirement I have is to send a specific size of data during the test (e.g., 10 TB).

I want to display (and save to log) the total size of sent data and total size of received data from all samplers.

Apparently, the values are collected, since the Summary report shows the average bytes. Also, I can see the sent and received data size per request in "View Results in Table".

Is there any simple way to pick the total size for sent and received data?


Solution

  • JMeter should save it by default in its .jtl results file

    enter image description here

    so just open the .jtl results file (which is a normal CSV file) using MS Excel or equivalent and sum all the values from bytes and sentBytes columns - it will give you the number of all inbound and outbound bytes which should be exactly you're looking for.

    If you don't see these columns - make sure that jmeter.save.saveservice.bytes and jmeter.save.saveservice.sent_bytes JMeter Properties are set to true. All settings which control what's being stored in the .jtl results file along with their default values are available under Results File Configuration user manual entry.

    Also the values can be checked in jmeter.properties file