Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Sign InSign Up

Softans

Softans Logo Softans Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
Home/ Questions/Q 4245
In Process
shrien rasba
shrien rasba
Asked: December 23, 20222022-12-23T07:04:14+00:00 2022-12-23T07:04:14+00:00

How to use Jmeter, tool?

How to use Jmeter, tool?
how to use jmetertool?
  • 2
  • 1 1 Answer
  • 9 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

1 Answer

  • Voted
  • Oldest
  • Recent
  1. shrien rasba
    2022-12-23T10:59:27+00:00Added an answer on December 23, 2022 at 10:59 am

    Meter Load Testing

    JMeter Load Testing is a testing process done using a load testing tool named Apache JMeter which is open source desktop application based on Java. JMeter for load testing is a crucial tool that determines whether the web application under test can satisfy high load requirements or not. It also helps to analyse overall server under heavy load.

    JMeter Performance Testing

    JMeter Performance Testing is Testing method performed using Apache JMeter to test the performance of a web application. JMeter for performance testing helps to test both static and dynamic resources, helps to discover concurrent users on website and provides variety of graphical analysis for performance testing. JMeter performance testing includes load test and stress test of web application.

    Performance Testing using Jmeter

    Apache JMeter testing tool offers following benefit in Performance Testing

    • JMeter can be used to test the performance of both static resources such as JavaScript and HTML, as well as dynamic resources, such as JSP, Servlets, and AJAX.
    • JMeter can discover maximum number of concurrent users that your website can handle
    • JMeter provides a variety of graphical analyses of performance reports.

     

    JMeter Performance Testing includes:

     

    Performance Testing using Jmeter

    • Load Testing: Modeling the expected usage by simulating multiple user access the Web services concurrently.
    • Stress Testing: Every web server has a maximum load capacity. When the load goes beyond the limit, the web server starts responding slowly and produce errors. The purpose of the Stress Testing is to find the maximum load the web server can handle.

    The figure below shows how JMeter load Testing simulates the heavy load:

    Performance Testing using Jmeter

    Create a Performance Test Plan in JMeter

    In this tutorial, we are doing a performance analysis of Google.com for 1000 users

    Before testing the performance of target web application, we should determine-

    • Normal Load: Average number of users visit your website
    • Heavy Load: The maximum number of users visit your website
    • What is your target in this test?

     

    Here is the roadmap of this practical example

     

    Performance Testing using Jmeter

    Step 1) Add Thread Group

    1. Start JMeter
    2. Select Test Plan on the tree
    3. Add Thread Group

    Right click on the “Test Plan” and add a new thread group: Add -> Threads (Users) -> Thread Group

    Performance Testing using Jmeter

    In the Thread Group control panel, enter Thread Properties as follows:

    Performance Testing using Jmeter

    • Number of Threads: 100 (Number of users connects to the target website: 100)
    • Loop Count: 10 (Number of time to execute testing)
    • Ramp-Up Period: 100

    The Thread Count and The Loop Counts are different.

    Performance Testing using Jmeter

    Ramp-Up Period tells JMeter how long to delay before starting the next user. For example, if we have 100 users and a 100-second Ramp-Up period, then the delay between starting users would be 1 second (100 seconds /100 users)

    Performance Testing using Jmeter

    Step 2) Adding JMeter elements

    Now we determine what JMeter elements in this test. The elements are

    • HTTP request Default

     

    This element can be added by right-clicking on the Thread Group and selecting: Add -> Config Element -> HTTP Request Defaults.

     

    Performance Testing using Jmeter

    In the HTTP Request Defaults control panel, enter the Website name under test (http://www.google.com)

    Performance Testing using Jmeter

    • HTTP Request

    Right-click on Thread Group and select: Add -> Sampler -> HTTP Request.

    Performance Testing using Jmeter

    In HTTP Request Control Panel, the Path field indicates which URL request you want to send to Google server.

    Performance Testing using Jmeter

    For example, if you enter “calendar” in Path field. JMeter will create the URL request http://www.google.com/calendar  to Google server

    Performance Testing using Jmeter

    If you keep the Path field blank  JMeter will create the URL request http://www.google.com to Google server.

    In this test, you keep the Path field blank to make JMeter create the URL request http://www.google.com to Google server.

    Step 3) Adding Graph result

    JMeter can show the test result in Graph format.

    Right click Test Plan, Add -> Listener -> Graph Results

    Performance Testing using Jmeter

    Step 4) Run Test and get the test result

    Press the Run button (Ctrl + R) on the Toolbar to start the software testing process. You will see the test result display on Graph in the real time.

    The picture below presents a graph of a test plan, where we simulated 100 users who accessed on website http://www.google.com.

    Performance Testing using Jmeter

    At the bottom of the picture, there are the following statistics, represented in colors:

    • Black: The total number of current samples sent.
    • Blue: The current average of all samples sent.
    • Red: The current standard deviation.
    • Green: Throughput rate that represents the number of requests per minute the server handled

    Let analyze the performance of Google server in below figure.

    Performance Testing using Jmeter

    To analyze the performance of the web server under test, you should focus on 2 parameters

    • Throughput
    • Deviation

    The Throughput is the most important parameter. It represents the ability of the server to handle a heavy load.  The higher the Throughput is, the better is the server performance.

    In this test, the throughput of Google server is 1,491.193/minute. It means Google server can handle 1,491.193 requests per minute. This value is quite high so we can conclude that Google server has good performance

    The deviation is shown in red – it indicates the deviation from the average. The smaller the better.

    Let compare the performance of Google server to other web servers. This is the performance test result of website http://www.yahoo.com/ (You can choose other websites)

    Performance Testing using Jmeter

    The throughput of a website under test http://www.yahoo.com is 867.326/minutes. It means this server handle 867.326 requests per minute, lower than Google.

    The deviation is 2689, much higher than Google (577). So we can determine the performance of this website is less than a Google server.

    NOTE: The above values depend on several factors like current server load at Google, your internet speed, your CPU power etc. Hence, it’s very unlikely that you will get the same results as above. So don’t panic!

    Troubleshooting:

    If you face the issue while running the above scenario … do the following

    1. Check whether you are connecting to the internet via a proxy. If yes, remove the proxy.
    2. Open a new instance of Jmeter
    3. Open the PerformanceTestPlan.jmx in Jmeter
    4. Double Click on Thread Group -> Graph Result
    5. Run the Test
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • Popular
  • Answers
  • Ghulam Nabi

    Why are the British confused about us calling bread rolls ...

    • 5 Answers
  • Ghulam Nabi

    Is this statement, “i see him last night” can be ...

    • 4 Answers
  • Alex

    application has failed to start because no appropriate graphics hardware ...

    • 4 Answers
  • Ghulam Nabi
    Ghulam Nabi added an answer It seems that the issue you are facing is a… January 27, 2023 at 1:37 pm
  • Ghulam Nabi
    Ghulam Nabi added an answer The error "E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)" is caused by… January 27, 2023 at 1:35 pm
  • Ghulam Nabi
    Ghulam Nabi added an answer The Chrome browser uses both memory cache and disk cache… January 27, 2023 at 1:32 pm

Trending Tags

android c++ cypress flutter java javascript python selenium testng webdriver

Top Members

Robert

Robert

  • 3 Questions
  • 1k Points
Luci

Luci

  • 5 Questions
  • 1k Points
Kevin O Brien

Kevin O Brien

  • 2 Questions
  • 1k Points

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Softans

Softans is a social questions & Answers Engine which will help you establish your community and connect with other people.

About Us

  • Blog
  • Jobs
  • About Us
  • Meet The Team
  • Contact Us

Legal Stuff

Help

Follow

© 2021 Softans. All Rights Reserved
With Love by Softans.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.