JMeter

Apache JMeter Basics:
  • Sampler
Issues/Solutions/Tips:

169 comments :

  1. I have 5 scenarios for my web application. The ratio in which to hit these scenarios are as follows : 10:25:30:5:30. I want to run the test for 5 hours. In the first hour the number of users should be 100, in the next hour it should be 80, then it should be 200, in the 4th hour it should be 500 and in the last hour it should be 300. How to achieve this workload modelling in Jmeter.
    Pls provide the step by step solution.

    ReplyDelete
    Replies
    1. Hi Rakesh,

      Please share your mail ID. I will share the screenshots of Workload Model which you have explained above.

      Delete
    2. can you share me the screenshot as well, i have something similar scenario. my email id: krunalktailor1989atgmaildotcom

      Delete
    3. Hi Krunal,

      Screenshots have been shared on given e-mail ID.

      Delete
    4. please share me the screenshots for the above scenario
      my email id: sudhakary2j@gmail.com

      Delete
    5. hi,
      can u plz share the screenshots with me and my mail id is pandarinath.allam at gmail dot com

      Delete
    6. Hi Sudhakar,

      Screenshots have been sent to given mail ID.

      Delete
    7. Can you please share me the screenshots for the above scenario and my email id is vishnu.vadlamudi@yahoo.com

      Delete
    8. Screenshot has been sent on vishnu.vadlamudi@yahoo.com

      Delete
    9. Could you please share the screenshots of Workload Model which you have explained above.
      pawanjawalkar@gmail.com

      Delete
    10. Hi Pawan,

      The workload model has been sent to your emailID.

      Delete
    11. Hi gagan please share the screen shots above work load model, kranthinaidu09@gmail.com

      Delete
    12. Hi Kranthi,

      Document is send on your email ID.

      Delete
    13. HI Gagan Can u please share to me connectdivya163@gmail.com

      Delete
    14. Document has been sent to given emailID

      Delete
    15. HI Gagan Can u please share to me snaveen.lrs@gmail.com

      Delete
    16. Hey Gagan,
      Can u please share to me cvdineshl17@gmail.com

      Delete
    17. Hi Dinesh,

      Document has been sent to given email ID.

      Delete
    18. Hi Gagan, please share this workload model with me (omm.jethi@gmail.com).Thank you.

      Delete
    19. Hi can you please share the same on how to distribute load (Population) on different thread groups % wise to hishiva@live.com

      Delete
    20. Hi Shiva,

      Document is sent via email.

      Delete
    21. Hi Gagandeep,
      Could you please share with me - kits.raman@gmail.com

      Delete
    22. Hi Gagan,
      Please share it on avinashsingh265@gmail.com

      Delete
    23. Hi Gagan,
      Please share it on amol.deokar4@gmail.com

      Delete
    24. Hi Gagandeep,
      Could you please share with me:- email.harideep@gmail.com

      Delete
    25. JMeter scenario has been shared to given emailID.

      Delete
    26. Hi Gagandeep,
      Could you please share with me on manvendra.anand@gmail.com

      Delete
    27. Hi Manvendra,

      Screenshot has been shared.

      Delete
    28. Hi Gagan,

      I have similar kind of scenario to be test in Jmeter. Could you please share screenshot on anshujainmist@gmail.com. Thanks in advance!

      Delete
    29. Hi Gagan,

      Could you please share it with me on amol.deokar4@gmail.com

      Delete
    30. Hi Amol & Anshu,

      Screenshot has been shared to your given emailID.

      Delete
    31. Please send me below mail I'd
      hari.perf1gmail.com

      Delete
    32. Hi Hari,

      Request you to share correct emailID.

      Delete
    33. Hi Gagan,
      can you please share the same screenshots for me.my mail id: harishas315@gmail.com

      Thank you for valuable information.

      Delete
    34. Hi Harish,

      Request has been addressed. Please check your email.

      Delete
    35. Thank you soo much Gagan.

      Delete
    36. hi Gagan, can you please share the screen shots to me also on rama.reddy9052@gmail.com

      Thank you.

      Delete
    37. Hi Gagandeep,

      Thanks for all your valuable inputs. Can you please share the screenshots on subramanian.kannan02@gmail.com

      Thank you!

      Delete
    38. Hi Subramanian,

      The screenshot has been shared.

      Delete
    39. Can you share the screenshot of workload model for above test scenario.My email id is tech4sanj@gmail.com

      Delete
    40. Screenshot has been shared.

      Delete
  2. Hi Gagandeep I want to run a test for 3 hours with 250 user on a webpage then how can i run it and how do decide rampup time could you please tell me

    ReplyDelete
    Replies
    1. Hi Vishal,

      Are you using Apache JMeter for your test? Please confirm so that I will share workload model for given scenario.

      You can decide ramp-up as per your experience. Generally, we provide ramp-up period, so that server should not get sudden huge load. Even it is an unrealistic scenario. Ramp-up period gradually increase the load on server and creates a realistic scenario and provides true performance.

      Now, come to your actual question.
      For above scenario,
      1. 5 Users ramp-up in each 5 seconds (HP LR)
      2. Ramp-up Period: 250 seconds (Apache JMeter)


      Delete
    2. Yes I am using Apache Jmeter but i cant understand if i will set rampup time 250 seconds than how my test will run for 3 hours can you explain it please

      Delete
    3. Hi Vishal,

      You have to provide following values in the "Thread Group" element for the above scenario:

      1. Number of Threads (users): 250
      2. Ramp-up Period (in seconds): 250
      3. Loop Count: Check mark on "Forever"
      4. Scheduler: Check mark on it
      5. Scheduler Configuration:
      a. Duration (in seconds): 11050 [(3*3600)+250]
      Rest should be blank

      If you want screenshot please share your mail ID.

      Delete
    4. Hi GaganDeep my mail ID is ervishalsinghgurjar@gmail.com please share screenshot with me.

      Delete
    5. Hi Vishal,

      Mail sent with requested screenshot.

      Delete
    6. Thanks Gagandeep, and please can you explain me this calculation [(3*3600)+250]

      Delete
    7. Hi Vishal,

      You will run your test for 3 hours i.e. 3X3600 seconds = 10800 seconds
      250 is ramp-up time which need to be included in "Test Duration", so adding 250 and 10800, you will get 11050 seconds.

      Note: The application performance is considered when all the threads (users) are in steady state. Therefore, while carrying out analysis, consider only 3 hours and exclude ramp-up period, provided that no error observed during ramp-up.

      Delete
    8. Please share the screenshots of Workload Model which you have shared to rakesh.

      Delete
    9. Hi Sai,

      Please share your mailID.

      Delete
  3. plz do share the above screenshots to my email id:sudhakary2j@gmail.com

    ReplyDelete
    Replies
    1. Already shared.

      Apologies for delay due to weekend :)

      Delete
    2. Hi gagan please share above screen shots to my mail id kranthinaidu09@gmail.com

      Delete
    3. Hi Kranthi,

      The screenshot has been shared.

      Delete
    4. Plz share the same at kumar090529@gmail.com, thanks.

      Delete
    5. Already Shared on 14th Jan. Please check your inbox.

      Delete
  4. hii,
    can u share the workload model screen shot to my mail id pandarinath.allam@gmail.com

    ReplyDelete
    Replies
    1. Hi Pandari nath,

      Mail has been sent with screenshot.

      Delete
  5. HTTP Header Manager Link Not working

    ReplyDelete
    Replies
    1. Thanks Vishal,

      Link has been corrected. Please use it.

      Delete
  6. Hi,
    can u please send workload model screen shots to my mail id vardhani.ch16@gmail.com

    ReplyDelete
    Replies
    1. plz send me workload model screen shots to my mail: sudhakary2j@gmail.com

      Delete
    2. Hi Sudhakar,

      I have already sent you screenshot attached in a mail on 10th April 2017.

      However, I have re-sent it.

      Delete
  7. Hi Gaagandeep can you share me screenshot of query asked by Rakesh on my mail id ervishalsinghgurjar@gmail.com

    ReplyDelete
    Replies
    1. Hi Vishal,

      Mail sent on given emailID along with attachment.

      Delete
  8. Hi Gangandeep,
    Can you Please share me the same screen shot ( Query asked by Rakesh) to my mail id rathan.alliance@gmail.com
    Thanks.

    ReplyDelete
    Replies
    1. Hi Rathina,

      Mail sent with attachment.

      Delete
    2. Hi Gagan,
      Is there any component in LR to achieve the workload model you have shared? I meant to setup client level throughput in Jmeter we are using the below all components in a test plan to control hitting request at server level. Please share your idea how to achieve these in LR.
      1. Throughput controller
      2. Constant Throughput Timer
      3. Random Order controller

      Delete
    3. Yes, you can control throughput in HP LR as well. The desired throughput can be easily achieved by "Goal Oriented Scenario" in LR Controller. You can defined 4 types of goal in HP LR:

      1. Virtual Users
      2. Hits per seconds
      3. Transactions per seconds (just like throughput controller of JMeter)
      4. Transaction response time
      5. Pages per minutes

      If you share your email id then I will share you some screenshots which will be helpful for you. In future I will write a detailed information on Manual and Goal Oriented Scenario of HP LoadRunner.

      Delete
    4. Hi Gagan,
      Thanks for response, Actually i have worked in Jmeter for Testing Webservices using the above mentioned jmeter components, which i will share to you, I want to achieve the same thing in LR. Please revert me(a.rathinakumar@gmail.com) with your screen shots and comments on this.
      Regards
      Rathinakumar

      Delete
    5. Replied on your mail along with screenshot of LR. Good Luck!

      Delete
    6. Thanks Gagan, it's really informative and more supportive.

      Delete
    7. Hi Gagan, can you please send me screenshot for the same as well. My mail id is omm.jethi@gmail.com

      Delete
    8. Hi Gagan, Please share LR Goal Oriented Scenario at omm.jethi@gmail.com. Thank you.

      Delete
    9. Hi Chandan,

      Please refer the following link for understanding goal oriented scenario.

      http://perfmatrix.blogspot.com/2017/03/hp-loadrunner-goal-oriented-scenario.html

      Delete
  9. If CPU and Ram usage is very low even though application response times is high what is the reason?

    ReplyDelete
  10. please send me the answer to my email-sudhakary2j@gmail.com

    ReplyDelete
  11. What is the approach to analyze AWR report for a specific SQL statement's performance in oracle db server for bottleneck analysis?

    ReplyDelete
    Replies
    1. Hi Sudhakar,

      Refer below link:
      https://www-01.ibm.com/common/ssi/cgi-bin/ssialias?htmlfid=ORW03038USEN

      Delete
  12. Hello sir,I am performing distributed database testing in JMeter with 1GB data,1master and 4 slave machines.But when I am running in command line mode in master as :
    sh jmeter -n -t Test\ Plan.jmx -l a.jtl hostids but I am not getting any file a.jtl in the bin.Please send me the answer at ektaagrawal.agrawal09@gmail.com

    ReplyDelete
  13. Hi gagandeep have you come across any encryption and decryption during script creation. If so how you handle it. Please explain in detail. Share the answer to my email:sudhakary2j@gmail.com

    ReplyDelete
    Replies
    1. Hi Sudhakar,

      If it is normal encoding and decoding, I prefer to use below online tool:

      http://meyerweb.com/eric/tools/dencoder/

      Delete
  14. Hi Gagandeep,
    i need URL for practicing J meter,can u help me.

    ReplyDelete
    Replies
    1. Hi Ashok,

      If you want to practice JMeter scripting then you can use below two sites:

      1. http://newtours.demoaut.com/
      2. http://blazedemo.com/

      Delete
  15. Hi Gagandeep,

    i need explanation about bean shell scripting and how to use bean shell scripting in jmeter.please send docs my mail ashokreddybanda.196@gmail.com

    ReplyDelete
    Replies
    1. Hi Ashok,

      As of now, I do not have any document on bean shell scripting. You could refer below URLs to get some basic knowledge on Bean Shell. In future, if I write any blog on bean shell scripting then I will share with you.

      1. https://www.blazemeter.com/blog/queen-jmeters-built-componentshow-use-beanshell
      2. https://www.blazemeter.com/blog/using-beanshell-beginners-no-java-knowledge-required

      Delete
  16. Hi Malviya
    Ineed information about JmeterJ

    How to create a framework in jmeter

    How to use framework entire the project

    ReplyDelete
    Replies
    1. Hi Ashok,

      Could you please describe what kind of framework for the project you wanted to create using JMeter?

      Delete
  17. Hi Malviya,

    Looking for Banking application I need to develop framwork..

    ReplyDelete
    Replies
    1. Hi Ashok,

      As I asked you before what kind of framework you want, because it does not matter whether your application belongs to banking or any other domain. Let me clarify more:

      What would be the purpose of Framework? If you need a framework which:

      1. Check the server health
      2. Reboot the server before test start
      3. Execute a smoke test
      4. Once smoke test is finished then start load test
      5. Collate the result
      6. Save/transfer the result to your local directory etc.

      Then yes, such framework can be created.

      Delete
    2. HiGagan


      I want develop a keyword driven framework with jmeter and maven integration how to use plugins

      Delete
    3. Hi Ashok,

      Hope, below links will help you out.
      JMeter Maven Plugin:
      https://github.com/jmeter-maven-plugin/jmeter-maven-plugin

      How to use:
      https://www.blazemeter.com/blog/how-use-jmeter-maven-plugin

      Delete
  18. I have similar scenario to work on...Could u please share the workload model screenshots to kittucs@gmail.com

    Thanks,

    ReplyDelete
    Replies
    1. I have sent the scenario screenshot on your email ID. Please have a look.

      Delete
  19. Hi Gagandeep,
    Could you please share the screenshots to me as well
    pawanjawalkar@gmail.com

    ReplyDelete
  20. Hi Gagan,
    Please share workload model details
    And how can do, what is the process what is the inputs we take from client

    ReplyDelete
    Replies
    1. Sure Ashok,

      I am working on it, soon you will get a detailed post on workload modelling.

      Delete
    2. Hi Ashok,

      As per your request, I have written the blog which will help you out to understand performance testing life cycle (from requirement gathering to result analysis). Refer below links:

      http://perfmatrix.blogspot.com/2017/06/performance-testing-life-cycle.html

      http://perfmatrix.blogspot.in/2017/05/ptlc-requirement-nfr-gathering.html

      http://perfmatrix.blogspot.com/2017/06/ptlc-performance-test-strategy-planning.html

      http://perfmatrix.blogspot.com/2017/06/ptlc-performance-test-design-scripting.html

      http://perfmatrix.blogspot.com/2017/06/ptlc-performance-test-execution.html

      http://perfmatrix.blogspot.in/2017/05/reporting-recommendation.html

      Delete
  21. Hi Gagan, Please upload IBM Rational Performance Testing tools docs.

    ReplyDelete
    Replies
    1. Hi Madhu,

      You can refer below link:
      http://www-01.ibm.com/support/docview.wss?uid=swg27049605&aid=1

      Delete
    2. Hi Gagan,
      Could you please share the screenshots to me as well.
      baburao.b23@gmail.com

      Delete
    3. Hi Babu Rao,

      Document has been sent.

      Delete
  22. This comment has been removed by the author.

    ReplyDelete
  23. Hi Gagan, can you please send me the screenshot on query asked by Rakesh.

    Thank you.

    ReplyDelete
  24. Hi Gagan. Please share me the videos or screenshots of Willy Introscope.
    My mail id madhu.dikkkala@gmail.com

    ReplyDelete
    Replies
    1. Hi Madhu,

      Unfortunately, I did not get chance to explore Wily Introscope tool. I got 1 URL, kindly use it, if it is helpful to you.
      https://www.youtube.com/watch?v=Dhj9NPlyTeU

      Delete
  25. Hi Gagan,
    Recently i installed Jmeter 4.0 version, while recording in to recording controller it doesn't captured, i checked port numbers it is correct, manually i tried it is working, can u please assist on these.

    ReplyDelete
    Replies
    1. Hi Yashwanth,

      Apologies for delay in response. Are you still facing issue?

      Delete
  26. Hi, I have same scenario. could you please share me that Screen shoot? My email: serajislam1988@gmail.com. Thanks

    ReplyDelete
  27. Hi Gagandeep,

    can you please explain beanshell or perl with example

    ReplyDelete
    Replies
    1. Hi Vijjapu,

      BeanShell is an scripting language. To explain the BeanShell in detail, will be a separate topic for me. If you are a performance tester then I would suggest to learn the basics of BeanShell which is required for JMeter BeanShell scripting. You can grab the knowledge from the available tutorials. Blazemeter has written a good article on the basics of BeanShell which is frequently used in the scripting:
      https://www.blazemeter.com/blog/using-beanshell-beginners-no-java-knowledge-required

      To learn some advance topics please refer below link:
      http://www.beanshell.org/manual/quickstart.html

      Delete
  28. Hi Gagandeep,

    1. could you please explain in details about distributed load test
    2. Jmeter Properties file and it's options

    ReplyDelete
  29. Hi Gagandeep, again i must say you have revolutionized PTE. Kindly share the screenshots with me as well ankitmorgan@gmail.com , i struggle at these calculations a lot

    ReplyDelete
    Replies
    1. Thanks Ankit,

      Screenshots have been sent. Please check your mail box.

      Delete
  30. Hi Gagandeep,

    Thanks for creating the valuable platform for Performance Testing followers.

    I have one query; I am setting up Grafana Dashboard and InfluxDB on Windows 10. Could you please provide your suggestions in setting it up?

    ReplyDelete
    Replies
    1. Hi Pravesh,

      You could follow the normal process as given in the link:
      http://docs.grafana.org/installation/windows/

      Delete
  31. Thanks Gagandeep for sharing the helpful doc. I will post here in case of any queries arise.

    ReplyDelete
  32. Hi,
    Could you please share the screenshots to me as well
    mail id : ganesh.simhadriqa@gmail.com

    ReplyDelete
  33. Hi,

    I am new to performance testing.

    That would be great help if anyone share basics of performance testing stuffs with real life scenarios.

    And discussed above scenarios are interesting and I am curious to know about it.

    Can you share with me screenshots and documents related to that?

    Thanks :-)

    ReplyDelete
    Replies
    1. Hi Vijay,

      You can refer:

      Performance Testing Basic: https://perfmatrix.blogspot.com/p/basic-of-performance-testing.html

      Performance Engineering Basic: https://perfmatrix.blogspot.com/p/basic-of-performance-engineering.html

      Delete
  34. Hi,
    we have an application where in Report section,there is multiple record and i need to check load time for scenario's are like-
    1. applying filter
    2. Select page size(i.e. per page record display) and check the load
    3. Page navigation
    but the number of users for accessing this functionality are very less like 10. so my concern is do i need to use the Arrival thread group or normal Load test will work using Thread group? And also can yu guide me on this for creating the test plan
    Thanks.

    ReplyDelete
  35. Hi Pallawi,

    The key rule of performance testing is that you can test the performance of all those requests which are flowing between client and server.
    1. While applying filter if any query is fired from client end which hits the server then you can implement it.
    2. JMeter shows page size only when you checked "Save Receive Byte Count" in the listener. Else it will given you overall throughput.
    3. It's Normal scenario.

    You can use normal thread group, as you are not performing Goal-Oriented Scenario.

    ReplyDelete
  36. Hi gagan please share above screen shots to my mail id vish.vishnu458@gmail.com

    ReplyDelete
    Replies
    1. Hi Vishnu,

      Screenshots have been sent. Please check your mail box.

      Delete
  37. Plz share the above discussed workload screenshot for jmeter and loadrunner on email id kumar090529@gmail.com, thanks.

    ReplyDelete
    Replies
    1. Hi Kumar,

      Screenshots have been sent. Please check your mail box.

      Delete
  38. Please share the workload model screenshots to mevish30@gmail.com

    Thanks.

    ReplyDelete
  39. Hi Gagandeep,

    Could you please send me the same (workload model screenshots)

    ReplyDelete
    Replies
    1. Hi Hari,

      Request you to share your emailID, so that I can share the screenshot.

      Delete
  40. Hi Gagandeep Malviya,
    I have a Scenario in JMeter. Launch the application --> Login with credentials --> Drop the Enrollment file --> Then file will be dropped with some name. Then I have to check that file status is ISSUED or IN PROCESS or STAGED.
    Here, My scenario is, if File Status is ISSUED then goto Logout page.
    if File sttus is IN PROCESS or STAGED then Loop the same transaction untill
    File status ISSUED.
    How can desing this scenarion in JMeter. Please share and with snapshop to my mail id - guruswamy.jl@gmail.com

    Thanks,
    Guruswamy K

    ReplyDelete
    Replies
    1. Hi Guruswamy,

      The algo for your case is:


      1. (Sampler)To capture the current status of file
      1a. (Post Processor - RegEx Extractor) To capture current status of File

      2. (If Controller) To check FileStatus=ISSUED
      2a. (Module Controller) GoTo Logout

      3. (While Controller) Run the loop until FileStatus!=ISSUED
      3a. (Sampler) Refresh the page - Continue until condition false
      3aa. (Post Processor - RegEx Extractor) To capture current status of File

      4. (Sampler) Logout

      Delete
  41. Hi Can you please send me That documents to ravicaddy@gmail.com

    ReplyDelete
    Replies
    1. Hi Rabindra,

      Requested screenshot has been shared.

      Delete
  42. Hi Sir,

    what will be the approach or code to choose the lowest priced flight ticket from available ticket (i.e correlation) and pass it to future sample for booking cheapest ticket in WebTours application or let it take makemytrip application in JMeter?
    (we know it for Loadrunner, want to know for Jmeter, how to book cheapest flight ticket?).

    Thanks.

    ReplyDelete
    Replies
    1. Hi Kumar,

      In JMeter, you need to add a regular expression extractor under the request whose response contain the flight ID and Price. The 'Match No.' value will be -1 and you need to capture both flight ID as well as price with the help of group using same regular expression i.e. $1$$2$.

      In the next step you need add a BeanShell PreProcessor with the code which will detect the lowest price flight. The code will require a for loop, value comparison and if condition. (Here you need work on the code). Likewise you will get lowest price.

      The associated flightID with lowest price can be passed in the next request.

      Delete
  43. I have a scenario. i want to book 5 train tickets and delete first 3 tickets. Take 2 users for 10 mins

    ReplyDelete
    Replies
    1. May I know what is the issue you are facing?

      Delete
  44. hi Gagan, kindly share the same screen shots on rama.reddy9052@gmail.com
    Thank you.

    ReplyDelete
  45. Hi,
    While hitting a API URL in chrome its asking for Windows User name and pwd and then loading perfectly fine but when I am giving same url in JMeter, its showing 401 Unauthorized even after providing credentials in Http Authorization Manager. When recording same thing in VSTS its working fine but why not working in JMeter? Do I need to provide more details or any config changes required?

    ReplyDelete
    Replies
    1. Did you import the JMeter certificate in the browser?

      Delete
  46. Hi Gagan,
    Could you please share the same screenshots for me.my mail id: pavan.pnr111@gmail.com

    Thank yoo.

    ReplyDelete
    Replies
    1. Hi Pavan,

      Screenshot has been shared to given emailID.

      Delete
  47. Hi Gagan

    Could you please share me the screenshots on the same topic for the below mentioned mail ID.
    amarreddy.pte21@gmail.com

    Thanks

    ReplyDelete
  48. Hi Gagan,

    Could you please share me the screenshots on the same topic for the below mentioned mail ID.
    ksaikiran.lr@gmail.com

    ReplyDelete
    Replies
    1. Hi Saikiran,

      The screenshots have been sent.

      Delete
  49. Hello,

    I have a requirement to conduct load testing WCF services hosted on netTCP protocol. Does Jmeter supports ?
    I could not find any relative posts or blogs in testing WCF netTCP protocol services, since all posts talks about http and https protocol.
    Please share any info on this topic, since it is critical.

    Thanks,
    Mahendra

    ReplyDelete
    Replies
    1. Hi Mahendra,

      Even I do not get chance to work on such scenario. You have to explore by yourself.

      Delete
  50. Hi anyone have documentation on throughput in performance testing if have please send to my mail id Yayadlapallisaipriya42@gmail.c

    ReplyDelete