Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » Install and conduct performance testing using Apache JMeter on your Web App

Install and conduct performance testing using Apache JMeter on your Web App

Posted on 29/10/202210/08/2023 Temitope Odemo By Temitope Odemo No Comments on Install and conduct performance testing using Apache JMeter on your Web App
jmeterlogo-1

JMeter is an Open Source Java application designed to measure performance and load test applications. Apache JMeter can measure performance and load test static and dynamic web applications. It can be used to simulate a heavy load on a server, group of servers, network or object to test its strength or to analyze overall performance under different load types. In this article, we will discuss “how to Install and conduct performance testing using Apache JMeter on your Web App”. Please see How to work with Windows Performance Toolkit, How to install Java Runtime Environment on Mac OS, and How to Install Apache HTTP Server on Ubuntu 20.04 LTS.

We have the JMeter GUI mode and Non-GUI mode, while the GUI mode is better for adding and editing new configuration elements, thread groups, and samplers but it consumes a lot of memory and resources when it runs a recorded script. The Non-GUI mode is highly recommended as a test execution mode in JMeter for those that do not have a high-capacity system that can withstand the GUI mode. JMeter consumes less memory and can accommodate more threads on a load generator.

Install JMeter to Conduct Performance Testing

JMeter requires Java to work on your system. You may want to know the Difference between testing and debugging and you may want to read more on other configuration settings you can read these: Configuration Manager Tools: How to install and debug logs with the CMTrace Tool, How to install and configure Ansible on Azure Virtual Machine, Keepalive Settings: Understanding keepalive configuration, Installation and configuration of Cockpit on CentOS Linux and you may want to learn How to Perform Load Test on Mobile App using Apache JMeter installed on your Windows System

Follow these steps to install JMeter: If you want to know the current Java version on your system try this command:

java --version
image-39

Download Java here!

2. After installing Java then go ahead to download JMeter here. Go to the binary section and download the zip file and extract the file.

image-40

3. Now click on the jmeter.bat file

image-41

Immediately this will launch the JMeter screen

image-42

The home screen is divided into two sections, the left section is all about the elements of the test plan and the right section is where you add the configuration of the elements.

image-43

4. Rename the Test Plan to any name of your choice but in this article, I will name it NBA and click on the Save icon.

image-44

5. Now add a thread group. Right-click on the Test Plan and select Add > Threads (Users) > Thread Group.  Thread groups are users that will be needed during this test.

image-45

6. Give the Thread Group a name and set the Thread Properties

image-46

Configure JMeter

7. Next Configure the Request that JMeter can work on. I will first select HTTP Request the simplest for now. Right-click the Thread Group you created and select Add > Sampler > HTTP Request.

image-47

8. Give the HTTP Request a name and add the server name or IP. There is no need of adding HTTPS or HTTP as it will be routed through the correct protocol. In the Path add a forward ‘/’ since we are going to access the route pages.

image-48

9. Let’s Perform an HTTP test now since we have set up all these. But we still need to add some more test elements and to do this right-click the Thread Group select Add > Listener > [View Results Tree] [View Results in Table]

image-49

Run Performace Test

10. Now Save and Run the Test. Check your result from the View Results Tree and View Results in Table. You can always go back to the Thread Group to change Thread Properties.

image-50

11. Let us assume we have an account Super Admin setup the below image shows I was able to log-in successfully. The Response code is 200 and OK.

image-51

The below shows the successful login token

image-52

The image below shows the Request body

image-53

The Summary report for the Login process for all the users shows 0.00% error

image-54

We will now be increasing the load on the Login. But if we will be Simulating multi-users then we will not be using the GUI mode rather we will use the command prompt. Remember that on the opening screen when launching JMeter state that :

Don't use GUI mode for load testing !, only for Test creation and Test debugging. For load testing, use CLI Mode (was NON-GUI):

Let’s simulate 60 users making a total 60 samples. The result returns with 0.00% error and Status 200 which is OK.

image-55

We are still having status 200 for the 60 samples

image-56

Simulate using the Non-GUI Command

Next, i will be using a Non GUI-like command prompt as I will be simulating more loads by simulating 300 users.

Run this command:

jmeter -n -t <test JMX file> -l <test log file>
jmeter -n -t C:\apachejmeter\bin\NBA.jmx -l C:\apachejmeter\bin\Report\NBA.csv

I will change the directory to the bin folder of my JMeter installation file and run the command there. Then I will state the name of the CSV file which will be used to capture the log like a report.

image-57

The test returns successfully. Go into the Bin folder and open the CSV file.

Below is the CSV file that captures the log of the simulation and you will know the status of the application performance.

image-58

I hope you found this blog post on how to install and conduct performance testing using Apache JMeter on your Web App Interesting and helpful. In case you have any questions do not hesitate to ask in the comment section.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Configuration Management Tool, Windows, Windows Server Tags:Performance, software testing, Testing, Windows 10, Windows 11

Post navigation

Previous Post: Detect if an application was uninstalled on Windows: Find out who has uninstalled an application via Windows Event Viewer
Next Post: How to clear Cache and Manually Update Microsoft Defender

Related Posts

  • windows 10 lock screen
    How to reset your lost or forgotten Windows 10 Password Windows
  • Block ZIPRAR Attachments in Outlook 2016 – 2007
    How to Block ZIP/RAR Attachments in Outlook Windows
  • Migrate from SQL Database
    Migrate Veeam One Database from SQL Server 2017 to 2025 Backup
  • ansible logo600 591x296 1
    Ansible_user=UNREACHABLE {Failed to connect to the host via SSH: SSH: Could not resolve hostname (Name or service not known, unreachable true) Configuration Management Tool
  • browser
    How to configure a new tab page URL in Microsoft Edge Windows
  • img 1686
    The trust relationship between this workstation and the primary domain failed Windows Server

More Related Articles

windows 10 lock screen How to reset your lost or forgotten Windows 10 Password Windows
Block ZIPRAR Attachments in Outlook 2016 – 2007 How to Block ZIP/RAR Attachments in Outlook Windows
Migrate from SQL Database Migrate Veeam One Database from SQL Server 2017 to 2025 Backup
ansible logo600 591x296 1 Ansible_user=UNREACHABLE {Failed to connect to the host via SSH: SSH: Could not resolve hostname (Name or service not known, unreachable true) Configuration Management Tool
browser How to configure a new tab page URL in Microsoft Edge Windows
img 1686 The trust relationship between this workstation and the primary domain failed Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • Featured image 2
    Find and remove Malware with Microsoft Defender Offline Anti-Virus Solution
  • windows update 03
    Check if Windows Updates were installed Windows
  • image 25
    ESXI 6.7 ALARM: Seat disk exhaustion on 10 Virtualization
  • Screenshot 2020 05 14 at 18.00.59
    Linux Error 13: Permission denied – Are you root Linux
  • Disable and Enable USB in Windows
    Disable and Enable USB Usage for Certain Users in Windows Windows
  • hgjk
    Understanding the different types of Proxy Servers Web Server
  • Shrink and Compact Virtual Hard Disks
    How to Shrink and Compact Virtual Hard Disks in Hyper-V Virtualization
  • feature image sublime text 4
    How to install Sublime Text 4 on Ubuntu Linux

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,813 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.