Denis Kokorin
Denis Kokorin

Reputation: 895

Http load testing with bytes counting

I need some possibility to conduct load testing of our REST API with traffic counting.

For example to run 20 concurrent user for 1 hour. As a result I want to get information about responses (avg time, delays, etc) and overall traffic that has been produced.

I overlooked JMeter and Gatling, but found no possibilities to count bytes.

I don't really need big amount of concurrent users (100 would be enough) and high throughput (more than 10 requests per second from single user).

My goal is just to produce some load on our system and to check that it shows correct statistic data.

Upvotes: 1

Views: 884

Answers (2)

Dmitri T
Dmitri T

Reputation: 168002

By default JMeter should be saving sent and received bytes in .jtl results file

JMeter .jtl results file

If it doesn't - add the next lines to user.properties file (lives in "bin" folder of your JMeter installation)

jmeter.save.saveservice.bytes=true
jmeter.save.saveservice.sent_bytes=true

Also make sure you have HttpClient4 implementation selected on the "Advanced" tab of HTTP Request sampler (or HTTP Request Defaults)

JMeter HTTP Request

Upvotes: 2

Ori Marko
Ori Marko

Reputation: 58774

JMeter (checked with latest 3.3) already save sent/received bytes by default, you can see in Listener's Configure button:

Save sent bytes count

Save received bytes count

You will get in jtl file saved columns ..,bytes,sentBytes..

Upvotes: 3

Related Questions