Jmeter Installation in 10 minutes | EngineerDiaries

Jan 26, 2021, 1298 Views, 0

Contents

  • Apache Jmeter Installation Steps
  • Install Java in the system
  • Set Environment Variable
  • Download Jmeter
  • Run the .bat file
  • Apache Jmeter is a complete Java-based testing application specifically designed for load testing of servers. Jmeter uses the multithreading concept of Java to the core. So the thread is basically a small program only, and java supports the multitasking concept where at one given point of time multiple threads can be executing requests simultaneously and that's needed when one is performing load testing. To improve the performance of the product, the developer needs to have his tools right where he can judge how much time the code is taking for the response of a given action when millions of users are using it at the same time. Jmeter has been around for a decade now and since then has expanded to the integration with Jenkins, Maven. Also, have the ability to automate writing test plans by recording browser actions. Installing and get started with Jmeter is exceptionally simple and you would start using the application in 10 minutes.


    1. Apache Jmeter  Installation Steps

    1. Install Java in the system. Java 8+ must be there.
    2. Set the path of the java bin folder in the environment variable
    3.check if java is successfully installed
    4. Download JMeter binaries, 
    5. Unzip the folder, and launch the .bat file in the bin from cmd. 

    2.Install Java in the system

    You can skip this step if java is already installed in your system, but make sure it is greater than version 8+. Download it from the link here based on the operating system you are using. Here in the reference tutorial, we are using Windows 10. Select next, Install. It should not take more than 5 minutes. Once done you need to check if it is even correctly installed or not. 

    Jmeter Installation in 10 minutes | EngineerDiaries

    java -version

    Jmeter Installation in 10 minutes | EngineerDiaries

    3. Set Environment Variable

    Once installed, you still need to set the path of the java bin in the environment variable. Go to the system property->Environment Variables->Path     ->Add

    Jmeter Installation in 10 minutes | EngineerDiaries


    4. Download Jmeter

    Now you have successfully installed Java in the system. Now you need to download apache JMeter from the site. You can install any of the binaries zip or tgz. Once you have unzipped using 7zip or any other tool you have in your system. Locate bin folder and in that locate jmeter.bat file. This is the application file you need to run via CMD or gitbash whatever you have. 

    Jmeter Installation in 10 minutes | EngineerDiaries
    Jmeter Installation in 10 minutes | EngineerDiaries


    5. Run the .bat file

    Run the jmeter.bat file from CLI and the application should open like this. And you have successfully installed JMeter in the system. In the next section, we will talk about the major components of apache JMeter and writing test plans using thread groups, sampler, and listeners.

    Jmeter Installation in 10 minutes | EngineerDiaries
    Jmeter Installation in 10 minutes | EngineerDiaries

    Comments Section: