Close

December 26, 2013

How to simulate bandwidth in JMeter?

Recently in my project, we got a situation to simulate bandwidth in JMeter tool. In LoadRunner, it is pretty easy to simulate, press F4, click on Speed Simulation under Network, select the desired speed level. But it is not straight forward in Apache JMeter.

How to simulate bandwidth in JMeter?

Go to JMETER_HOME\bin folder, open jmeter.properties file in your favorite editor, search for httpclient.socket.http.cps=0.

Uncomment that line and enter your desired bandwidth to simulate. If your application under test is HTTPS protocol, then uncomment httpclient.socket.https.cps=0

Before entering your value in CPS (Character Per Second), use below calculator to convert your kbps to cps. e.g. if your desired bandwidth is 100 kbps, then the cps would be 12800.

Subscribe to our QAInsights YouTube Channel. If you are enjoying our work, please do subscribe our free weekly newsletter or Google feeds.

About NaveenKumar Namachivayam

Hi there! is a passionate and experienced Performance Test Analyst based in Chicago, USA with skill sets in Manual Testing, Test Automation, Performance Testing, and Test Estimation. He loves to learn and experiment new trends and models in Software Testing. Please stop by at his personal blogs: Excel Blog, DealsBrook, NaveenKumarN.in, and Affiliate Insights blog and Software Testing Memes.

One Comment on “How to simulate bandwidth in JMeter?

Hemarao
December 14, 2015 at 3:24 pm

Hi,
If i want run different bandwidths like 3G,4G,What is the value i need to give?

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *