SlideShare a Scribd company logo
Dipanjan Haldar
22-04-2016
 In the current digital world mobile app usage has overtaken
desktop traffic - and this trend just looks set to rise. But what
does this mean for us?
 For performance engineers, it means that now, more than ever,
we need to focus on mobile users when running performance
tests. If our mobile app doesn’t perform well - our business will
be at stake.
 In most of the cases, mobile device users access the
internet via the cellular network. The network coverage
will vary depending on the location. Hence it is very
critical to ensure that the system can fully handle mobile
and tablets - even when they have different internet
connection speeds.
 By default, Jmeter will send the requests to the target
server as fast as it can. This is great for generating the
load on the server - but not very realistic as real users
don’t hit the server non-stop, they will have some time to
think between operations. On top of that, mobile users
are limited by network bandwidth, which can slow them
down considerably.
 Option to throttle outgoing bandwidth in order to simulate different network speeds
 Bandwidth can be controlled through these two properties:
◦ httpclient.socket.http.cps=0
◦ httpclient.socket.https.cps=0
 “cps” stands for “characters per second”
 The properties default to zero, which means no limitations
 The formula for calculating “cps”
 For example: to emulate the GPRS cellular network speed (which is 171 Kbits/second
downstream), the relevant CPS value would be: 21888 (171 * 1024/8)
cps = (target bandwidth in kbps * 1024) / 8
1. Add these two lines to the user.properties file (you’ll
find this in the bin folder of your JMeter installation)
◦ httpclient.socket.http.cps=21888 httpclient.socket.https.cps=21888
◦ You’ll need to restart Jmeter to pick these properties up
2. Alternatively, you can pass the properties’ values via
the -J command line argument, like this:
◦ jmeter -Jhttpclient.socket.http.cps=21888 -
Jhttpclient.socket.https.cps=21888 -t /path/to/your/testplan.jmx

More Related Content

What's hot (18)

PDF
SFScon 21 - Eduardo Guerra - A Lean Software Analytics Canvas for Agile Small...
South Tyrol Free Software Conference
 
PDF
Fundamentals Performance Testing
Bhuvaneswari Subramani
 
PDF
Performance test on Carrefour
Denis Santos
 
PDF
Jmeter Walkthrough
Bhuvaneswari Subramani
 
PPTX
ATAGTR2017 Performance Automation in Dev-Ops
Agile Testing Alliance
 
PDF
Code review automation and functional tests on Carrefour
Denis Santos
 
PPTX
Ginsbourg.com presentation of apache jmeter 4
Shay Ginsbourg
 
PPTX
New relic
Shubhani Jain
 
PPTX
ATAGTR2017 Analytics Testing
Agile Testing Alliance
 
PPTX
How Trilio Uses StormForge to Deliver Better Kubernetes Performance at 64% Lo...
StormForge .io
 
PPTX
ATAGTR2017 Cost-effective Security Testing Approaches for Web, Mobile & Enter...
Agile Testing Alliance
 
PDF
Performance tuning Grails applications
GR8Conf
 
PPTX
Your Testing Is Flawed: Introducing A New Open Source Tool For Accurate Kuber...
StormForge .io
 
PPTX
ATAGTR2017 Blockchain Based Testing
Agile Testing Alliance
 
PPTX
Ginsbourg.com - Presentation of Performance & Load Testing Validation 2019
Shay Ginsbourg
 
PDF
Cut your Grails application to pieces - build feature plugins
GR8Conf
 
PPTX
Dynatrace
Purnima Kurella
 
PPTX
Using Automation to Meet Demands for Performance and Quality
Neotys
 
SFScon 21 - Eduardo Guerra - A Lean Software Analytics Canvas for Agile Small...
South Tyrol Free Software Conference
 
Fundamentals Performance Testing
Bhuvaneswari Subramani
 
Performance test on Carrefour
Denis Santos
 
Jmeter Walkthrough
Bhuvaneswari Subramani
 
ATAGTR2017 Performance Automation in Dev-Ops
Agile Testing Alliance
 
Code review automation and functional tests on Carrefour
Denis Santos
 
Ginsbourg.com presentation of apache jmeter 4
Shay Ginsbourg
 
New relic
Shubhani Jain
 
ATAGTR2017 Analytics Testing
Agile Testing Alliance
 
How Trilio Uses StormForge to Deliver Better Kubernetes Performance at 64% Lo...
StormForge .io
 
ATAGTR2017 Cost-effective Security Testing Approaches for Web, Mobile & Enter...
Agile Testing Alliance
 
Performance tuning Grails applications
GR8Conf
 
Your Testing Is Flawed: Introducing A New Open Source Tool For Accurate Kuber...
StormForge .io
 
ATAGTR2017 Blockchain Based Testing
Agile Testing Alliance
 
Ginsbourg.com - Presentation of Performance & Load Testing Validation 2019
Shay Ginsbourg
 
Cut your Grails application to pieces - build feature plugins
GR8Conf
 
Dynatrace
Purnima Kurella
 
Using Automation to Meet Demands for Performance and Quality
Neotys
 

Viewers also liked (20)

PPTX
Test Engagement - Vishal Prasad
Agile Testing Alliance
 
PDF
Testing AS A Container - Irfan Ahmad
Agile Testing Alliance
 
PPTX
Dr. shankar-dev ops-davinci_code_GTR
Agile Testing Alliance
 
PPTX
#ATAGTR2016 Twitter Action
Agile Testing Alliance
 
PPTX
Introduction - #ATAGTR2016
Agile Testing Alliance
 
PPTX
Fidelity Test Data Management
Agile Testing Alliance
 
PPT
BDD along with Continuous Integration
Agile Testing Alliance
 
PPTX
Continuous Performance Testing with Taurus and Jmeter
Agile Testing Alliance
 
PPTX
Test Automation in Agile
Agile Testing Alliance
 
PDF
Using Docker for Testing - Mukta
Agile Testing Alliance
 
PPTX
Yahya Devqaops updated
Agile Testing Alliance
 
PDF
Automation Testing Approach for Responsive Web Design
Agile Testing Alliance
 
PDF
Patterns of a "Good" Test Automation Framework, Locators & Data
Agile Testing Alliance
 
PPTX
Augmented Reality & Software Testing - Sourabh d
Agile Testing Alliance
 
PDF
IoT: Testing - Shardul Rao
Agile Testing Alliance
 
PPTX
Service Virtualization - Kalpna
Agile Testing Alliance
 
PPTX
Mind Wave In Testing
Agile Testing Alliance
 
PDF
Demystifying Devops - Uday kumar
Agile Testing Alliance
 
PPTX
50+ ways to improve tester - programmer relationship
Agile Testing Alliance
 
PPTX
Modelling QA Transformation with Prime
Agile Testing Alliance
 
Test Engagement - Vishal Prasad
Agile Testing Alliance
 
Testing AS A Container - Irfan Ahmad
Agile Testing Alliance
 
Dr. shankar-dev ops-davinci_code_GTR
Agile Testing Alliance
 
#ATAGTR2016 Twitter Action
Agile Testing Alliance
 
Introduction - #ATAGTR2016
Agile Testing Alliance
 
Fidelity Test Data Management
Agile Testing Alliance
 
BDD along with Continuous Integration
Agile Testing Alliance
 
Continuous Performance Testing with Taurus and Jmeter
Agile Testing Alliance
 
Test Automation in Agile
Agile Testing Alliance
 
Using Docker for Testing - Mukta
Agile Testing Alliance
 
Yahya Devqaops updated
Agile Testing Alliance
 
Automation Testing Approach for Responsive Web Design
Agile Testing Alliance
 
Patterns of a "Good" Test Automation Framework, Locators & Data
Agile Testing Alliance
 
Augmented Reality & Software Testing - Sourabh d
Agile Testing Alliance
 
IoT: Testing - Shardul Rao
Agile Testing Alliance
 
Service Virtualization - Kalpna
Agile Testing Alliance
 
Mind Wave In Testing
Agile Testing Alliance
 
Demystifying Devops - Uday kumar
Agile Testing Alliance
 
50+ ways to improve tester - programmer relationship
Agile Testing Alliance
 
Modelling QA Transformation with Prime
Agile Testing Alliance
 
Ad

Similar to Simulating Different-Network Speeds using JMETER (20)

PDF
Mobile Apps Performance Testing Using Open Source Tool JMeter
Devendra Singh
 
PDF
Performancetestingjmeter 131210111657-phpapp02
Nitish Bhardwaj
 
PPTX
J meter introduction
Bharath Kumar
 
PPT
Performance testing jmeter
Bhojan Rajan
 
PDF
Performance Testing for Mobile Apps & Sites using Apache JMeter
Alon Girmonsky
 
PPT
JMeter & ColdFusion
isummation
 
PPTX
performancetestingjmeter-121109061704-phpapp02 (1)
QA Programmer
 
PPTX
performancetestingjmeter-121109061704-phpapp02
Gopi Raghavendra
 
PDF
Software QS Tag White Paper
Devendra Singh
 
PDF
Performancetestingjmeter 121109061704-phpapp02
Shivakumara .
 
PPT
Performance testing and j meter
Purna Chandar
 
PPT
Load Test Drupal Site Using JMeter and Amazon AWS
Vladimir Ilic
 
PDF
Experitest & Wipro Co-Webinar
Experitest
 
PDF
Testing Mobile App Performance
TechWell
 
PPTX
Performance testing using Jmeter for apps which needs authentication
Jay Jha
 
DOCX
Mobile App - Jmeter (1)
Gopi Raghavendra
 
PPTX
Performance testing with Apache JMeter
RedBlackTree
 
ODP
Apache JMeter Introduction
Søren Lund
 
DOC
Best Jmeter Interview Questions- Prepared by Working Professionals
Testing World
 
Mobile Apps Performance Testing Using Open Source Tool JMeter
Devendra Singh
 
Performancetestingjmeter 131210111657-phpapp02
Nitish Bhardwaj
 
J meter introduction
Bharath Kumar
 
Performance testing jmeter
Bhojan Rajan
 
Performance Testing for Mobile Apps & Sites using Apache JMeter
Alon Girmonsky
 
JMeter & ColdFusion
isummation
 
performancetestingjmeter-121109061704-phpapp02 (1)
QA Programmer
 
performancetestingjmeter-121109061704-phpapp02
Gopi Raghavendra
 
Software QS Tag White Paper
Devendra Singh
 
Performancetestingjmeter 121109061704-phpapp02
Shivakumara .
 
Performance testing and j meter
Purna Chandar
 
Load Test Drupal Site Using JMeter and Amazon AWS
Vladimir Ilic
 
Experitest & Wipro Co-Webinar
Experitest
 
Testing Mobile App Performance
TechWell
 
Performance testing using Jmeter for apps which needs authentication
Jay Jha
 
Mobile App - Jmeter (1)
Gopi Raghavendra
 
Performance testing with Apache JMeter
RedBlackTree
 
Apache JMeter Introduction
Søren Lund
 
Best Jmeter Interview Questions- Prepared by Working Professionals
Testing World
 
Ad

More from Agile Testing Alliance (20)

PPTX
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
Agile Testing Alliance
 
PDF
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
Agile Testing Alliance
 
PPTX
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
Agile Testing Alliance
 
PDF
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
Agile Testing Alliance
 
PDF
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
Agile Testing Alliance
 
PPTX
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
Agile Testing Alliance
 
PPTX
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
Agile Testing Alliance
 
PPTX
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
Agile Testing Alliance
 
PDF
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
Agile Testing Alliance
 
PPTX
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
Agile Testing Alliance
 
PPTX
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
Agile Testing Alliance
 
PPTX
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
Agile Testing Alliance
 
PPTX
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
Agile Testing Alliance
 
PDF
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
Agile Testing Alliance
 
PPTX
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
Agile Testing Alliance
 
PDF
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
Agile Testing Alliance
 
PDF
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
Agile Testing Alliance
 
PPTX
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
Agile Testing Alliance
 
PDF
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
Agile Testing Alliance
 
PPTX
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
Agile Testing Alliance
 
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
Agile Testing Alliance
 
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
Agile Testing Alliance
 
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
Agile Testing Alliance
 
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
Agile Testing Alliance
 
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
Agile Testing Alliance
 
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
Agile Testing Alliance
 
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
Agile Testing Alliance
 
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
Agile Testing Alliance
 
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
Agile Testing Alliance
 
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
Agile Testing Alliance
 
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
Agile Testing Alliance
 
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
Agile Testing Alliance
 
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
Agile Testing Alliance
 
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
Agile Testing Alliance
 
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
Agile Testing Alliance
 
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
Agile Testing Alliance
 
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
Agile Testing Alliance
 
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
Agile Testing Alliance
 
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
Agile Testing Alliance
 
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
Agile Testing Alliance
 

Recently uploaded (20)

PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Designing Production-Ready AI Agents
Kunal Rai
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Biography of Daniel Podor.pdf
Daniel Podor
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Designing Production-Ready AI Agents
Kunal Rai
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 

Simulating Different-Network Speeds using JMETER

  • 2.  In the current digital world mobile app usage has overtaken desktop traffic - and this trend just looks set to rise. But what does this mean for us?  For performance engineers, it means that now, more than ever, we need to focus on mobile users when running performance tests. If our mobile app doesn’t perform well - our business will be at stake.
  • 3.  In most of the cases, mobile device users access the internet via the cellular network. The network coverage will vary depending on the location. Hence it is very critical to ensure that the system can fully handle mobile and tablets - even when they have different internet connection speeds.  By default, Jmeter will send the requests to the target server as fast as it can. This is great for generating the load on the server - but not very realistic as real users don’t hit the server non-stop, they will have some time to think between operations. On top of that, mobile users are limited by network bandwidth, which can slow them down considerably.
  • 4.  Option to throttle outgoing bandwidth in order to simulate different network speeds  Bandwidth can be controlled through these two properties: ◦ httpclient.socket.http.cps=0 ◦ httpclient.socket.https.cps=0  “cps” stands for “characters per second”  The properties default to zero, which means no limitations  The formula for calculating “cps”  For example: to emulate the GPRS cellular network speed (which is 171 Kbits/second downstream), the relevant CPS value would be: 21888 (171 * 1024/8) cps = (target bandwidth in kbps * 1024) / 8
  • 5. 1. Add these two lines to the user.properties file (you’ll find this in the bin folder of your JMeter installation) ◦ httpclient.socket.http.cps=21888 httpclient.socket.https.cps=21888 ◦ You’ll need to restart Jmeter to pick these properties up 2. Alternatively, you can pass the properties’ values via the -J command line argument, like this: ◦ jmeter -Jhttpclient.socket.http.cps=21888 - Jhttpclient.socket.https.cps=21888 -t /path/to/your/testplan.jmx