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
  • dc
    Fix MDT accidental OS deletion Windows Server
  • screenshot 2020 04 22 at 23.28.23
    Remove saved RDP connections in Windows Windows
  • google sdk feature
    How To Install Google Cloud SDK on a Linux System Linux
  • Featured image Teams Whiteboard
    How to use Whiteboard in Microsoft Teams meetings Windows
  • Internet Explorer
    How to uninstall Internet Explorer from your Windows Device Windows
  • BitLocker Protection off Update UEFI BIOS to fix issues
    BitLocker Protection off: Update UEFI/BIOS to fix issues Windows
  • Manage OU
    Delete or Rename and Create a Protected Organisation Unit in AD Windows Server
  • Prevent Windows from Saving RDP Connection
    Prevent Windows from Saving RDP Connection History Windows

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.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to 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

  • acctlockout 1
    Configure Local Administrators Account lockout Windows
  • windows sysinternals
    Sysmon from SysInternal: What is System Monitor and how to install and use it Windows Server
  • troubleshooting Active Directory Replication
    How to troubleshoot Active Directory Replication issues Network | Monitoring
  • Windows Logo
    Restrict IP Address Range on Windows PC Windows
  • vcx
    Fix Error code 0x4 Session disconnected: Your session ended because of an error, if this keeps happening, contact your system administrator Windows
  • Keep personal files and apps
    Fix Keep personal files and apps option greyed out during Upgrade Windows Server

More Related Articles

acctlockout 1 Configure Local Administrators Account lockout Windows
windows sysinternals Sysmon from SysInternal: What is System Monitor and how to install and use it Windows Server
troubleshooting Active Directory Replication How to troubleshoot Active Directory Replication issues Network | Monitoring
Windows Logo Restrict IP Address Range on Windows PC Windows
vcx Fix Error code 0x4 Session disconnected: Your session ended because of an error, if this keeps happening, contact your system administrator Windows
Keep personal files and apps Fix Keep personal files and apps option greyed out during Upgrade 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

sysadmin top30a

  • dc
    Fix MDT accidental OS deletion Windows Server
  • screenshot 2020 04 22 at 23.28.23
    Remove saved RDP connections in Windows Windows
  • google sdk feature
    How To Install Google Cloud SDK on a Linux System Linux
  • Featured image Teams Whiteboard
    How to use Whiteboard in Microsoft Teams meetings Windows
  • Internet Explorer
    How to uninstall Internet Explorer from your Windows Device Windows
  • BitLocker Protection off Update UEFI BIOS to fix issues
    BitLocker Protection off: Update UEFI/BIOS to fix issues Windows
  • Manage OU
    Delete or Rename and Create a Protected Organisation Unit in AD Windows Server
  • Prevent Windows from Saving RDP Connection
    Prevent Windows from Saving RDP Connection History Windows

Subscribe to Blog via Email

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

Join 1,839 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

AWS 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.