Cookies on this site

We would like to use cookies to understand how the site is used and to measure our campaigns. Nothing is set until you choose, and you can change your mind at any time from “Cookie settings” at the foot of every page. Privacy policy

Contact UsContact Us

Resources / Blogs

Cloud & apps

How to send multiple HTTP request to webserver using Apache JMeter

Apache JMeter is a load testing tool. It can be used for analyzing and measuring performance of a web server. Learn ways to send multiple HTTP request to webserver

· · 2 min read

HTTP Request to Webserver

Apache JMeter is a load testing tool. It can be used for analyzing and measuring performance of a web server. Although Apache JMeter provides lots of functionality for testers but today I will show you how to send multiple request to your a web server using JMeter easily.

You may download Apache JMeter (Version 2.13) from here.

Prerequisites

JDK 1.6 or higher.

Installation

Apache JMeter comes in a zip archive. Just unzip it to use.

How to run

Open ApacheJMeter.jar file inside apache-jmeter-2.13bin directory and and you are good to go.

Creating a test plan

Step 1: Create a Thread Group

Right click on Test Plan and go to Add->Threads(Users)->Thread Group.

Now inside Thread Group section enter the following things-

Number of Threads (users): It’s the number of user Jmeter will try to simulate. Set this to 100 or according to your need.

Ramp-Up Period (in seconds): This tells JMeter how long to take to “ramp-up” to the full number of threads chosen. Enter 10 or according to your requirement.

Loop Count: The number of times you want to execute the test. Set it to 1.

Step 2: Add an HTTP Request Defaults

Here you can set default values for all the HTTP requests.
Right click on Thread Group and go to Add->Config Element->HTTP Request Defaults.
Enter name or IP address of your server in Server Name or IP and your application's port number in Port Number field.

Step 3: Add an HTTP Request Sampler

Now create an http request sampler to send an http request to the server. This is going to be used by all the thread.

Right click on Thread Group and go to Add->Sampler->HTTP Request

Under HTTP Request section enter the following according to your test plan-

Implementation– Select HttpClient3.1 or HttpClient4.

Method– Select the http method you want to use in the request.

Path– Select the path for the http request.

Inside Parameters section add your parameters if any. Click on Add button which will create a new row. Enter name of the parameter in Name column and value of the parameter in Value column.

Step 4: Add a View Result in Table Listener

Right click on Thread Group and go to Add->Listeners->View Results in Table.

Here you can see the results of the test in tabular format. Also you can save the results in the popular CVS format. To do that write file name in Filename field of Write results to file/Read from file section.

Now click on File->Save or press Ctrl+S to save the test plan.

How to Run the Test

You are all set to go. Click on Run->Start or press Ctrl+R to run the test.

← All articles

Case studies

Cloud Consulting in practice

Client names are withheld. We are happy to share details on a call.

All case studies
  • Delivered

    On-prem → Amazon RDS

    Nonprofit

    Cloud Consulting

    Oracle from on-premises to Amazon RDS for a national nonprofit

    The nonprofit's on-premises Oracle database had become hard to maintain and scale. We planned the move with automated workflows and validation tests, migrated to Amazon RDS for Oracle with minimal disruption and left a repeatable process for future changes.

    • Automated, tested migration
    • Less day-to-day database upkeep
  • Delivered

    600k files, < 3 days

    Document management

    Microsoft

    600,000 documents moved from ImageRight to SharePoint in under three days

    A one-file-at-a-time script would have needed about 22 days of continuous running. We rebuilt the migration around a SQL work queue with parallel uploads, automatic retries and crash recovery, and it finished unattended in under three days.

    • 1,125 → 8,314 files per hour
    • Under 3 days instead of about 22
  • Delivered

    Every change, flagged

    Food manufacturing

    AI Consulting

    Label comparison agent for a national food cooperative

    Compares two versions of a product label, highlights every change, annotates the PDF and returns an audit-ready list of differences. We moved it from Copilot Studio to Azure Functions when the document processing outgrew the low-code platform.

    • Audit-ready differences in one chat turn
    • Rebuilt from low-code to cloud functions

Keep reading

All Cloud & apps articles

Moving an application to the cloud?

Request a migration plan consult. We will scope the move with you and come back with a fixed-scope plan.