Reputation: 11
I am trying t control the bandwidth in Jmeter using CPS value at runtime by using following command : jmeter -Jhttpclient.socket.http.cps=12800 -Jhttpclient.socket.https.cps=12800 -n -t [JMX path] -l [Results path]
Is there a way to check the applied CPS value in Jmeter? Is there any command to print the applied CPS value in jmeter logs?
Upvotes: 0
Views: 54
Reputation: 2907
Also when the properties are set and the cps
is above zero you should see the following messages in jmeter.log file:
INFO o.a.j.JMeter: Setting JMeter property: httpclient.socket.http.cps=12800
INFO o.a.j.JMeter: Setting JMeter property: httpclient.socket.https.cps=12800
If you want to just print the property value you can use any suitable JSR223 Test Element and the following piece of Groovy code:
log.info('HTTP CPS: ' + props.get('httpclient.socket.http.cps'))
log.info('HTTPS CPS: ' + props.get('httpclient.socket.https.cps'))
In case you want to see whether the real throughput exceeds the one you set via properties you can check a listener like Aggregate Report, it shows the throughput in KB/s
Upvotes: 0