Search code examples
jmeterflow-control

How to limit the speed (or flow control) of http request in JMeter


I want to simulate end user accessing some http urls with JMeter. Is it possible to limit the connect speed for each http request like a flow control? Saying limit JMeter to fetch the response in max speed of 1M bps for each http request.


Solution

  • Following parameters in jmeter.properties should do what you trying to achieve it.

    # Define characters per second > 0 to emulate slow connections
    #httpclient.socket.http.cps=0
    #httpclient.socket.https.cps=0
    

    Another option is to use traffic shaper, tc if you are on linux.