JMeter Beginner Tutorials | Tips n Tricks 8 💡 Concurrency Thread Group-How to setup Realistic Test

  Рет қаралды 57,844

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер
@RaghavPal
@RaghavPal 6 жыл бұрын
Online courses - automationstepbystep.com/
@emerydarwin1077
@emerydarwin1077 3 жыл бұрын
Instablaster.
@abhishekjha4290
@abhishekjha4290 Жыл бұрын
Hi, When I try to use concurrency thread group I am facing stack overflow exeception:null , I am hitting the request and then moving along the pages by doing pagination and while controller, Can someone help me understand why am I getting the stack overflow exception, I checked my while controller as well it is not called infinitely.
@RaghavPal
@RaghavPal Жыл бұрын
Abhishek The stack overflow error in JMeter typically occurs when there's an excessive amount of data being processed or a recursive function call that doesn't terminate. In the context of a Concurrency Thread Group, it's possible that the issue arises due to the combination of multiple threads executing the same code path and accumulating data within a limited memory space. To effectively troubleshoot this issue, it's crucial to examine the specific code segments that might be causing the stack overflow. Here's a step-by-step approach: 1. **Identify the Code Path:** Determine the code path where the stack overflow error occurs. This could be a specific test script, a custom function, or a complex logic within your test plan. 2. **Check for Recursion:** Analyze the code for any recursive function calls. Recursive functions can lead to stack overflow if they don't have a clear termination condition. 3. **Review Data Processing:** Examine any data processing operations that might be accumulating data within the code. Ensure that data is being handled efficiently and not growing unboundedly. 4. **Validate While Controller Usage:** Verify that the While Controller is properly configured and doesn't lead to an infinite loop. Ensure the condition for exiting the loop is met and doesn't depend on external factors that might not change. 5. **Monitor Memory Usage:** Use JMeter's monitoring tools to observe the memory consumption during test execution. If the memory usage spikes excessively, it could indicate a memory leak or excessive data accumulation. 6. **Optimize Code and Data Handling:** Optimize the code to minimize unnecessary data processing and memory allocations. Use efficient data structures, avoid redundant calculations, and ensure data is properly released after usage. 7. **Increase Thread Group Ramp-Up Period:** Consider increasing the ramp-up period for the Concurrency Thread Group. This will gradually introduce more threads, reducing the load on each thread and potentially mitigating the stack overflow issue. 8. **Utilize Multiple Thread Groups:** If the issue persists, consider splitting the test plan into multiple thread groups, each handling a specific portion of the test flow. This can help distribute the workload and reduce the likelihood of stack overflow. By carefully examining the code, data handling, and thread group configurations, you can identify the root cause of the stack overflow error and implement appropriate solutions to prevent it from recurring.
@praveeniyer4294
@praveeniyer4294 3 жыл бұрын
Hi Raghav, I need to perform stress/load testing of the application using jmeter, where i want to see the behaviour of application for a 10,000 requests/ every 30 mins for a period of 5 hours. Also, i need to run this in non-gui mode.. How can i achieve it? Looking forward for your guidance on the same
@RaghavPal
@RaghavPal 3 жыл бұрын
HI Praveen, you will find a video on running in non gui, cmd in the JMeter playlist and you can set the configuration too. Check the JMeter all playlists here - automationstepbystep.com/
@Trader1717
@Trader1717 2 жыл бұрын
How much thread groups we can pass when we are doing performance testing in local system. Is any limitation.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Murali, it will depend on the system configuration, you can find the load you can put based on configuration online, I will suggest not to use your primary system for any load testing, you can create and test the requests by going max upto 10 or 50 users on your system and then for the actual load test, use another system like a remote machine or cloud systems. Your IT team can help in that
@Trader1717
@Trader1717 2 жыл бұрын
@@RaghavPal Thank you Sir
@sukhwindersingh-kz8zd
@sukhwindersingh-kz8zd 4 жыл бұрын
@rahgav, thread iteration is stopped working in concurrency thread group, is there any solution for the same
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sukhwinder, I will need to check on this. Pls ensure there is no setup issue at your end
@anithapv5758
@anithapv5758 3 жыл бұрын
Hi i have one question?in jp@gc ultimate thread group we can able to run the 2 scripts or not and it will shows the difference in graph?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Anitha, Yes, you can add diff samplers
@vincenttuazon8642
@vincenttuazon8642 2 жыл бұрын
I have a question. I have concurrency thread group with 6 HTTP requests under parallel controller. I am running them non-gui. The result I am currently getting is that each of the 6 requests has graphs and which is correct. What I want now is that split the 6 HTTP request into two groups. Group A and Group B but still under the same parallel controller and run on non-gui. I want to have the same 6 graphs with the addition of the graph of them as a group. I want to see 8 graphs/results in total. How can I do that?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Vincent, not sure, will need to check online
@sizzler8730
@sizzler8730 3 жыл бұрын
Hi Raghav. i am evaluating apache bench tool and JMETER. Problem is that for same concurrency params, if i run via AB, i get a very high RPS like 50K+ RPS, and when same thing if i run via JMETER concurrency thread group, i get only 1000 RPS. What am i missing ?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Nabil, will need to check the setup. Can try some online help on this
@keshavdwivedi5192
@keshavdwivedi5192 7 жыл бұрын
hi raghav I have a doubt that in the stepping thread group in which all threads did not shut down at once in this one, all threads shut down at once, so it does not seems to be realistic approach as all threads should shut down gradually as it happens with stepping thread group, is there any type of thread group in which there can be realistic approach as it was there in stepping thread group ??
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Keshav The Concurrency Thread Group doesn’t provide the ability to define initial delay, step transition and ramp-down - which the Stepping Thread Group does. read it here www.blazemeter.com/blog/advanced-load-testing-scenarios-jmeter-part-4-stepping-thread-group-and-concurrency-thread?BM_blog&
@praveeniyer4294
@praveeniyer4294 3 жыл бұрын
I am trying to use one of the plugin called custom thread group and trying to run it via non-gui mode, but i am getting following exception/error. Could you please help me with this? An error occurred: Error in NonGUIDriver Problem loading XML from:'/home/cloud-user/apache-jmeter-5.3/bin/LoadTestingDemo_060921_02.jmx'. Cause: CannotResolveClassException: kg.apc.jmeter.threads.UltimateThreadGroup
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Praveen, see if this helps stackoverflow.com/questions/25759977/conversion-error-when-opening-jmx-file-from-jmeter-2-7-in-jmeter-2-11/25767536
@praveeniyer4294
@praveeniyer4294 3 жыл бұрын
@@RaghavPal ,Thanks Raghav, the issue has now been fixed.Now i am able to run it in non gui mode without any issues, i had added the plugins as suggested :) thanks for your prompt response and timely help! :)
@1pavankumar23
@1pavankumar23 4 жыл бұрын
Hi Raghav sir, this is very good training. Could advise on how to validate this load test results to determine for saying good results or bad results. Is there any % like 1 or 2% failed from overall is considered as good test results. please advise.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Pavan, usually this will be decided by your team. Like what will be a good performance stats for your application. Watch this - kzbin.info/www/bejne/nGSuapqNgNWMaMU
@1pavankumar23
@1pavankumar23 4 жыл бұрын
Thank you for details. Is there any video that helps to understand difference between loan runner vs jmeter load test. Please advise.
@RaghavPal
@RaghavPal 4 жыл бұрын
Not any video I created, but you should find information online
@compassase8438
@compassase8438 4 жыл бұрын
in jmeter can we execute test having test plan that has two thread group and the names of both of thread group are same??and can we execute both in same time?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, you can try adding both in a test plan and run the test plan
@rickylee5866
@rickylee5866 4 жыл бұрын
Hello Raghav, I am a beginner for Jmeter. I have watched tutorial 1-3, 6, 17 and Tips n Tricks 8. For the testing I need to run, I need login as 10 different users (with different email address and password) concurrently into a website and each user need to trigger a search. I need to check if the system can tolerate such traffic. I am unsure how I can let 10 different users to login concurrently. What tutorials do I need to watch in order to achieve that? Thanks, Ricky
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ricky, you can use variables and refer the data from external source like excel or can also create user defined variables within JMeter and refer data. guide.blazemeter.com/hc/en-us/articles/207421395-Using-User-Defined-Variables-Using-User-Defined-Variables
@mib2801
@mib2801 2 жыл бұрын
Hi, it was indeed a great tutorial. Do we need to install the plugins in the slave machines also. Kindly comment
@RaghavPal
@RaghavPal 2 жыл бұрын
will be required on slave machines too
@rajithabandaru
@rajithabandaru 6 жыл бұрын
Hi Raghav, I have a doubt, How to make settings in Concurrency thread group so that the script runs for one iteraion? I tried in two ways: 1.By not giving anything in hold target time and by giving 1 in iteration count 2.By giving time in hold target more than a iteration time and count of iteration as 1 In First case it just replayed for 2 secs whereas in second case it considered the hold target time value and went for second iteration too. Please help me with this ASAP Thanks, Rajitha
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Rajitha, "Thread Iterations Limit" defines the maximum amount of loops each thread is allowed to iterate. The actual number of requests will vary depending on other settings (Target Concurrency and Hold Target Rate Time). Each Thread which will be kicked off by the Concurrency Thread Group will make not more than the number of loops you define in the "Thread Iterations Limit" section.If you are looking for "classic" iterations - it is better to go for "normal" Thread Group and Constant Throughput Timer to control the concurrency. Ref - www.blazemeter.com/blog/advanced-load-testing-scenarios-jmeter-part-4-stepping-thread-group-and-concurrency-thread
@mohitamudaliar2006
@mohitamudaliar2006 3 жыл бұрын
Hi Raghav! If I want to perform a series of action on a website like hitting the url, adding items to the cart and then checkout with 100 concurrent user how can I achieve this? Please reply
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Mohita, you can use Include and Module controllers for this
@mohitamudaliar2006
@mohitamudaliar2006 3 жыл бұрын
@@RaghavPal but how to put load on these actions?
@RaghavPal
@RaghavPal 3 жыл бұрын
You can find some examples for these online, that will help to get started
@shreeteshkumarmohanty8241
@shreeteshkumarmohanty8241 Жыл бұрын
Hi raghav, hope u r doing well... The thing is when I am doing j meter concurrency threads group and am clicking on run no matter what my http request are failing....plz guide me raghav
@RaghavPal
@RaghavPal Жыл бұрын
Hi Shreetesh Here are some possible reasons why your HTTP requests are failing when you run your JMeter concurrency thread group: * The URL or request parameters are incorrect. Check the URL and request parameters in your JMeter script to make sure they are correct. You can use the View Results Tree listener to see the actual URL and request parameters that were sent to the server. * The server is overloaded. If you are running your JMeter test with a high number of concurrent threads, the server may be overloaded and unable to handle the load. You can try reducing the number of concurrent threads or increasing the ramp-up period. * There is a bug in your JMeter script. If you have recently made changes to your JMeter script, it is possible that there is a bug in the script. You can try debugging your script or running it in a simpler environment to see if you can identify the bug. Here are some additional things you can try to troubleshoot your JMeter test: * Enable saving response data. This will allow you to see the actual response from the server, which can help you to identify the cause of the failure. * Use the PerfMon plugin. This plugin can provide you with more detailed information about the performance of your JMeter test, which can help you to identify the cause of the failure. * Ask for help on the JMeter forums. The JMeter forums are a great resource for getting help with troubleshooting JMeter tests. I hope this helps!
@mishkakamtikar5564
@mishkakamtikar5564 Жыл бұрын
Hi raghav,very amazing videos helped me alot to learn. I am stuck in a confusion. I am new to performance testing I need to know that In my jmter test plan i want to run 3 sets of users group , the test should run for 11 hours ,in which from thread 1 group every 60 sec new thread should be added , second group 2, every 2 sec thread should be added and third group also 2 threads per second , which thread type and timer I need to you ,do u have any document or reference from where I can get information
@RaghavPal
@RaghavPal Жыл бұрын
Mishka To achieve your desired scenario in JMeter where you want to run 3 sets of user groups with different thread addition rates, you can use the following configuration: 1. Thread Group Configuration: - Add a "Thread Group" for each set of users. You will have three Thread Groups in total. - Configure the number of threads and the ramp-up period for each group accordingly. 2. Schedulers for Dynamic Thread Addition: - Use the "Constant Throughput Timer" to control the rate at which threads are added. You will need to configure it for each Thread Group as per your requirement. 3. Setting up Constant Throughput Timer: - For the first group (1 thread every 60 seconds), set the "Target Throughput" to 1 request/minute. This can be calculated as 60 seconds / 60 seconds = 1 request/minute. - For the second group (2 threads every 2 seconds), set the "Target Throughput" to 1 request/2 seconds. This can be calculated as 2 seconds / 2 seconds = 1 request/2 seconds. - For the third group (2 threads every 2 seconds), set the "Target Throughput" to 1 request/2 seconds as well. Here's a more detailed step-by-step guide: 1. Thread Group 1: - Number of Threads: Set the initial number of threads. - Ramp-up Period: Set the initial ramp-up period. - Add a "Constant Throughput Timer" with a Target Throughput of 1 request/minute. 2. Thread Group 2: - Number of Threads: Set the initial number of threads. - Ramp-up Period: Set the initial ramp-up period. - Add a "Constant Throughput Timer" with a Target Throughput of 1 request/2 seconds. 3. Thread Group 3: - Number of Threads: Set the initial number of threads. - Ramp-up Period: Set the initial ramp-up period. - Add a "Constant Throughput Timer" with a Target Throughput of 1 request/2 seconds. With this configuration, you should be able to achieve the desired scenario where threads are added at different rates for each user group. Adjust the initial thread count and ramp-up period based on your specific requirements.
@rajshripawar9956
@rajshripawar9956 3 жыл бұрын
Hi. Thanks for the video. I have a query about Junit integration in jmeter. Can you help me. I am facing issue in concurrent execution thread group.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Rajshri, can let me know the exact issue
@bijju1331
@bijju1331 2 жыл бұрын
Hi Raghav sir, how can we control the number of api requests ?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Sudhir, do you mean total no of requests or Throughput Check this thetesttherapist.com/2019/02/08/stop-jmeter-test-run-when-reaching-a-specific-number-of-requests/
@nupurpathak856
@nupurpathak856 4 жыл бұрын
How do we simulate a Scenario where multiple users login, navigate through different pages and than logout.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Nupur, can check this - kzbin.info/www/bejne/oHzMi2Sbm9V4a9k
@IaMensvh
@IaMensvh 3 жыл бұрын
@@RaghavPal Hi, is this the correct link for simulating multiple users
@himanshutanwar71
@himanshutanwar71 4 жыл бұрын
Hi Raghav, I want to run parallel request with different data, can I do that with jmeter? Like, after login with different users, get user details api should get hit for each user respectively. All this in parallel.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Himanshu, you can try parallel controller - www.blazemeter.com/blog/how-to-use-the-parallel-controller-in-jmeter
@anissabrina9977
@anissabrina9977 3 жыл бұрын
Hi sir, I want to design an API load test (REST API) using JMeter. This is example scenario: For the first test run, we want to run 1000 virtual users, ramp-up 30 mins, hold target rate time (sustain load 1k users) for 1 hour, and lastly ramp-down 30 mins. How do I apply this design test? I'm pretty confused whether to use Concurrency Thread Group or Ultimate Thread Group because Concurrency Thread group don't have the Step Down feature.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Anis, you can set this up using JMeter, Can check my JMeter tutorials here - automationstepbystep.com/
@sudhindraggg
@sudhindraggg 3 жыл бұрын
Hi Raghav - Can you please share an example on how to use Throughput Shaping Timer along with Concurrency Thread Group to achieve better load profiles
@RaghavPal
@RaghavPal 3 жыл бұрын
I will plan to add on this
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
Can we check the stress testing with concurrency thread group
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rohit, for doing a stress test ,check this www.blazemeter.com/blog/how-perform-stress-test-jmeter
@dev3726
@dev3726 4 жыл бұрын
Hi Raghav, I have one question. Is there any way we can know how many time a thread was iterated. Lets say I am running a test with 35 Target Concurrency for 1 hour. i want to know that how many time a single Thread was iterated. Is there any way of knowing that?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ashish, you can add a tabular listener or get the result in a csv file and check.
@NehaGupta-ur8ji
@NehaGupta-ur8ji 4 жыл бұрын
Hi Raghav, I require little clarification over linking of concurrency thread group when recording is done via blazemeter. As when we do recording via blazemeter and open that jmx file in Jmeter we already have thread group present in it. I tried to run my test by putting simple thread group as disabled and added a concurrency thread group but it gave me no results. Can you please help me with it.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Neha, it creates a sample thread group with all your recorded samplers. Now I have to see your setup or replicate to check what is the real issue.
@NehaGupta-ur8ji
@NehaGupta-ur8ji 4 жыл бұрын
There is not any issue as script is running with 200 status. Rather my query is how can the recording done via blazemeter adds concurrency thread rather adding a simple thread group.
@NehaGupta-ur8ji
@NehaGupta-ur8ji 4 жыл бұрын
You can even say that i am looking for linking of blazemeter script with concurrency thread group rather than simple thread group. I want to run my script (which is recorded via blazemeter) using concurrency thread group and not simple thread group.
@RaghavPal
@RaghavPal 4 жыл бұрын
Okay, so that you will have to do manually in the TestPlan Neha. Blazemeter will give you the recorded test plan and you can then configure it as per your need
@NehaGupta-ur8ji
@NehaGupta-ur8ji 4 жыл бұрын
I tried the same but it gave me blank results in listeners. I added concurrency thread group and disabled the simple one. Can you please help me with this
@hadiabouhamzeh5004
@hadiabouhamzeh5004 9 ай бұрын
Hello, thank you for this tutorial but I'm getting confused about the configurations, my target is to run 1000 user 200 user will call an API at the same time this is my configurations: Target concurrency = 1000, Ramp-up time 10 seconds, Ramp-up Steps count 5 and Thread iterations limit = 200 is this correct? thanks in advance
@RaghavPal
@RaghavPal 9 ай бұрын
Hadi Your JMeter configuration aims to achieve a target concurrency of 1000 users with 200 users calling an API simultaneously. Let's break down your configuration: - Target Concurrency: This is the total number of concurrent users you want to simulate. You've set this to 1000. - Ramp-Up Time: This defines how long JMeter will take to get all the target users active. With 10 seconds, JMeter will add users over this period until 1000 are active. - Ramp-Up Steps Count: This is the number of steps JMeter will divide the ramp-up period into. With 5 steps, JMeter will add users in 5 increments over the 10-second period. - Thread Iterations Limit: This is the number of iterations each user will perform. You've set this to 200, which means each user will execute the test plan 200 times. However, there seems to be a misunderstanding in your configuration. If you want 200 users to call an API at the same time, you need to adjust the ramp-up time and steps to ensure that 200 users are active concurrently within your desired timeframe. For example, if you want to ramp up to 200 concurrent users within the first few seconds and then continue adding users until you reach 1000, you might configure it like this: - Target Concurrency: 1000 - Ramp-Up Time: 2 seconds (for the initial 200 users) - Ramp-Up Steps Count: 1 (to add all 200 users at once) - Thread Iterations Limit: 200 After the initial 200 users are added, you can continue to add users in increments until you reach 1000. The total test duration should be long enough to accommodate all user activity. Remember, the actual ability to support these numbers depends on the resources of the JMeter host machine. If you're running into issues with large numbers of users, consider distributed testing with multiple JMeter instances or using cloud-based solutions¹²³. It's also important to monitor the performance of the system under test to ensure it can handle the load and to gather accurate metrics. Adjust your configuration as needed based on the results and the behavior of the system during testing
@munirathinam1619
@munirathinam1619 2 жыл бұрын
Hi Raghav, API is throwing 504 bad gateway error for all users when I try with 30 concurrent users. All API calls are getting passed when I try with 20 users. What will be the issue?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi, if this happens when you increase user load, it can be a performance issue and you can share your results and check with your teams
@ashwinch3445
@ashwinch3445 7 жыл бұрын
is this useful for stress testing .? can i show this test plan as stress testing to my client..?
@RaghavPal
@RaghavPal 7 жыл бұрын
Yes, you can customize as per your needs
@manekagayomi9079
@manekagayomi9079 7 жыл бұрын
Hi Raghav, When come to real senarios i face this kind of problems.Can you please help me to resolve those. 1.I'm recording a web application using jmeter recorder.Then it will add the normal thread group.But I want to add "concurrency thread group" to there.But I want to use the "concurrency thread group". Is that ok to add new concurrency thread group and copy all the recorded samples to there? 2.I'm using the Blazemeter chrome plugin to record because it is easy and not want to change the proxy time to time.But our office guys says ,we cant trust it because it is a third party tool.Is that true and what is the better way? 3.There is a web application in our office and I want to test the performance of a real senario. Let's say within the given time some users are login,some are already logged and idle,some are file uploading,some are file dowmloading,some are wathing video. Can i test this kind of senario in jmeter? Please support me.
@RaghavPal
@RaghavPal 7 жыл бұрын
HI Maneka, 1. Yes, its okay, 2. In that sense, everything is third party. Even JMeter is not your in-house tool. However if there are some security concerns than it can be different, However, i don't see issues using Blazemeter. 3. Yes, you can create diff thread groups in a test plan and run them
@TheLunarah
@TheLunarah 5 жыл бұрын
Hello, thank you for the videos. I don't understand one thing, I made my configuration as: 20/20/5/5. (seconds selected) And I got: - 173 samples according to my "View Result in Table" (Wasn't it supposed to be 20?) - 83% error rate according to "Aggregate Report". The erros , according to my "View Results Tree" are: - Response code: 503 It happens even testing google.com. Is this plugin unstable nowadays? Thank you.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Denis, I will need to check this as I get some time. Meanwhile you can do some more tests and verify the results
@shanmukhasantosh
@shanmukhasantosh 6 жыл бұрын
Hi Raghav, Can I distribute the Concurrency Thread Group load by running it on various slave machines.. ? Please suggest... Regards, Santosh
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Shanmukha, for slave(remote testing) you can actually do from a normal thread group also. If you put 100 user load and use 2 slaves, then both will run with a user load of 100. So in total 200 users. I have not tried using Concurrency thread group for remote testing, You can try it out. Take help from this - kzbin.info/www/bejne/hZybdKSZZdycps0
@pedrofajardo8137
@pedrofajardo8137 4 жыл бұрын
And the distributed mode test??
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Pedro, this will help kzbin.info/www/bejne/hZybdKSZZdycps0 Let me know if you have any specific questions on this
@apekshachawan7734
@apekshachawan7734 3 жыл бұрын
Hello, can you explain the order in which threads are executed?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Apeksha, I will need to check on this, Let me know if there is some specific issue with the order
@apekshachawan7734
@apekshachawan7734 3 жыл бұрын
@@RaghavPal if thread and ultimate thread are added in test plan along with set up and tear down.
@RaghavPal
@RaghavPal 3 жыл бұрын
Okay, what is the scenario to add both, you can do with one
@manekagayomi9079
@manekagayomi9079 6 жыл бұрын
Hi Raghav, I want to simulate a realistic load test where every user is having a unique login details.Testing application only accept only the registered users in the app.Therefore I could not use the CSV data set config.
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Maneka, this is a limitation of the test application. JMeter can handle multiple user credentials
@swayambikash4981
@swayambikash4981 7 жыл бұрын
Hi Raghav, Thanks for the creating awesome tutorial series.I am a strict follower of your channel.Its very rare to find tutorial about the new features of Jmeter 4.I came across that we can also create HTML reports by executing using ant.It would be really helpful if you can make a video on that one .I tried from my end but coould not generate it for Jmeter 4.(java-1.8.0,ant 1.8).Please guide for HTML report generation using ant for Jmeter 4. Thanks in Advance
@RaghavPal
@RaghavPal 7 жыл бұрын
Sure Swayam, will try to do it soon.
@jeremyj7923
@jeremyj7923 4 жыл бұрын
Hi Raghav, Great work on the video series. I have the following use case (simplified): 1. User logs in 2. Approves a document 3. User logs out With the ultimate test group I want to simulate an 8-hour work day scenario where the peak will be around noon and then ramp down until end of work day is reached. I'm struggling as to how to define the Ramp-down period. Will the ramp-down wait to make sure that each iteration is completed from step 1-3 (i.e. every user is logged out) ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Jeremy, you can use Concurrency thread group
@jeremyj7923
@jeremyj7923 4 жыл бұрын
​@@RaghavPal Hi Raghav thanks allot for your response. Concurrency Thread group has no ramp down option. I want the target to be reached around noon and to then gradually ramp down again, similar as to what you describe here: kzbin.info/www/bejne/mYCzn4uLedKHeLs The problem is that the shutdown command that JMeter sends does not take into account that users should log-out first. I need some kind of logout hook that gets executed after JMeter sends the shutdown thread command. If I dont have do logout command then my server(Siebel) gets tons of logged in users who are actually not part of the test script anymore Done allot of searching and I see others running into the same problem (stackoverflow.com/questions/30242365/jmeter-execute-logout-action-during-ramp-down) Curious to your opinion. If there's no clean solution then I'll just stick to a linear path to the target with no ramp down using Concurrency Thread. At the end of the day/end of the all test I will then do a cleanup of logged in users.
@RaghavPal
@RaghavPal 4 жыл бұрын
Looks like not a specific solution for this yet. I will check more
@ARPITCHOUDHARY1
@ARPITCHOUDHARY1 4 жыл бұрын
Hi Raghav, Thank you so much for wonderful JMeter videos, I got good understanding now, I have one doubt, How the same configuration will work for multiple api's in a Concurrent thread group. Like I want to Hit my all api's with 50 parallel threads, how can i achieve this? If I run all the api's simultaneously will the load will distribute or the same load will occur on all the api's ?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Arpit, In concurrency thread group, you can set the time when you want to run with full load. It is basically to mimic real world scenario, In addition you can use some controllers too
@ashitaagrawal3114
@ashitaagrawal3114 4 жыл бұрын
Hi, Can you please explain "Threads per request". If I'm running an API with 100 users and samples generated are 5000, then can we calculate it?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, 100 users or threads means 100 users will be running the request simultaneously. Now the number of requests can by any count. It is basically the total no of request sent by the users during the duration of testing
@tusharvinchhi5258
@tusharvinchhi5258 4 жыл бұрын
Nice Video Raghav. I'm new to Jmeter. I have total 50 users and in every 5 second new user should come for the login. Please suggest which thread group should i use and how to setup it. I'm getting confused in Simple thread group, Concurrency thread group and Ultimate thread group. Please suggest. One question: In Summary report-> Sample count will be as per the request? For Example: Login page link will hit 50 times because we have 50 users. So if we are using Concurrency thread group and Ultimate thread group then login page link's Sample count is increased.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Tushar, You can try with Ultimate Thread Group, the load is for user count and not request, so a user can run a request multiple times unless configured
@lydiafawzy1493
@lydiafawzy1493 6 жыл бұрын
Hi :) I have set Target Concurrency = 10, and Ramp Up Time (sec) = 10, I noticed Thread Group 1-1 for ex called multiple times, or Thread Group 1-2. Could you please tell me why ?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Iydia, 1-1 means first iteration for user 1, 1-2 means first iteration for user 2
@lydiafawzy1493
@lydiafawzy1493 6 жыл бұрын
@@RaghavPal I know, Just i mentioned above that 1-1 called multiple times . why ?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Iydia, okay, can you send me your jmx file to look into this
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
How can we calculate the sample in aggregated report for concurrency user.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rohit, check this sqa.stackexchange.com/questions/37501/how-to-calculate-number-of-samples-for-concurrent-users-using-either-jpgc-ultim
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
@@RaghavPal thanks sir this is amazing but i want a video also
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
In concurrency thread group throughput is less as compare to the thread group why it is so And how can we find the error in view result tree
@RaghavPal
@RaghavPal 4 жыл бұрын
will plan a session on this
@sajinvarghese6706
@sajinvarghese6706 6 жыл бұрын
Hi Raghav! Really nice explanation. Could you please explain how can we achieve ramp down of thread groups in Concurrency Thread group as we did in Stepping Thread group. Since Stepping Thread group is deprecated, we should be using Concurrency Thread group right?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Sajin, When "Hold target rate" time span is reached, the Concurrency Thread Group simply stops supplying any more threads and iterating them over and over so each thread will just finish executing samplers and stop.
@frannelk
@frannelk 4 жыл бұрын
Hi Brother, Are you familiar on testing AWS Lambdas with JMeter?
@RaghavPal
@RaghavPal 4 жыл бұрын
Not yet worked on that
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
What are s distributed load and condition load on the server
@RaghavPal
@RaghavPal 4 жыл бұрын
We can do distributed load testing by using multiple machines and distributing the load For having any conditions we can use controllers for if else structure
@SonuKumar-fx7kp
@SonuKumar-fx7kp 5 жыл бұрын
I have one scenario I need to set up 15 minute ramp up time for 1000 Thread and then Run the test for 1 hour and after that ramp down for 15 minute. How to Configure Ramp down ?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Sonu, try ultimate thread group jmeter-plugins.org/wiki/UltimateThreadGroup/
@frannelk
@frannelk 4 жыл бұрын
If I understand correctly Target concurrency is the number of users, Right?, LET ME EXPLAIN YOU WHAT I DID............ I used for a big test, Target concurrency 1000, Ramp Up Time (sec) 600, Ramp-Up Steps count 10 (hold target and thread ite limit left empty), so I was expecting to see 1000 concurrent connections splitted in 10 steps along 600 secs (10 minutes), instead I see in my Listener "View Results in Table" that the sample column reached 44141, that is 40 times more that what I expected, definetely I'm just learning to use the tool. Do you mind to breakdown what I did based on the numbers I inputted?, thanks. PS: I'm figuring out that I had another normal Thread Group (under the same Test Plan) with this: Number of Thread 300, Ramp-Up period (secs)100, Loop Count 2, ........ and it seems that if I press run JMeter will launch all of them, Is my assumption correct?..
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Frannelk, the samples column show the number of requests made. So it can be a large number. It is basically how many requests were made during this duration. Every user can send multiple requests.
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
How can i get interview good questions of jmetre on experience or fresher level Is Udemy provide the interview questions.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rohit, you may find many good resources online for JMeter interview questions
@catalinarojano1083
@catalinarojano1083 6 жыл бұрын
Hi, I require after maintaining a time the test, lower the number of threads little by little, as it could be done with a concurrency thread group
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Catalina, this was available in Stepping Thread Group - kzbin.info/www/bejne/mYCzn4uLedKHeLs
@ashokkumarganga4361
@ashokkumarganga4361 2 жыл бұрын
How add dynamic variable in concurrency thread group For Api request
@RaghavPal
@RaghavPal 2 жыл бұрын
Can use functions
@bullukumar3226
@bullukumar3226 4 жыл бұрын
Can i count the thread of any webserver using j meter
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Bullu, thread means users here that we set as per the user load
@bullukumar3226
@bullukumar3226 4 жыл бұрын
@@RaghavPal ok so i want to monitor Apache httpd servers thread. How can i see the thread count
@RaghavPal
@RaghavPal 4 жыл бұрын
You can try perfmon
@bullukumar3226
@bullukumar3226 4 жыл бұрын
@@RaghavPal thanks for reply. Can u explain it How to do.
@rohitmisra9008
@rohitmisra9008 2 жыл бұрын
When we use this concurrency thread group ultimate thread group
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Rohit, I will plan for a session on this, for now this can help stackoverflow.com/questions/60411331/what-is-the-difference-between-concurrency-thread-group-and-ultimate-thread-grou
@ashwanirao6956
@ashwanirao6956 2 жыл бұрын
Hi, I need one small help from you, I need to execute 30 concurrent requests that can be fulfilled by this video. But I need to add the query param in my request that will be different in each request. Let's say my get request has id as a query param. and that will come from the previous request response. Please help. if this is possible. Thanks
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Ashwani, you can extract the value from earlier request and store it in a variable and use it in next request(s). For this you can use : Correlation - kzbin.info/www/bejne/bV6xlKyQqrqEpNk JSON Extractor (for JSON requests) - kzbin.info/www/bejne/aaiTqWmraZJppMk
@avinashrathod2394
@avinashrathod2394 2 жыл бұрын
Hi sir, I want to add 10 concurrent users and i has to run for 10 hrs continuously and iteration is 1. Target concurrency = 10 What would be the Ramp up time in (sec)? Ramp up step? Hold target rate time? Iteration= 1 Can u please guide me Thanks
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Avinash, you can try Ultimate Thread Group
@avinashrathod2394
@avinashrathod2394 2 жыл бұрын
@@RaghavPal thank you sir
@pritamdey7531
@pritamdey7531 6 жыл бұрын
Hi Raghav, Nice explanation. I have a doubt. How do we achieve pacing in concurrency thread group? Like how do we achieve TPH?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Pritam, Pls explain in detail, what exactly you are looking at
@pritamdey7531
@pritamdey7531 6 жыл бұрын
Suppose, we have requirement like #user=500, TPH= 100000. In that case, we can calculate time interval as 18 sec. To achieve 100000 TPH, we need to set fixed time interval as 18 sec in loadrunner (third option under pacing section in run time settings). So, for example, if one whole iteration is taking 11 sec. then it will wait (18-11)sec i.e. 7 sec. In this way, we can achieve a particular TPH. Is there any way to put the time interval in jmeter to achieve a particular TPH?
@RaghavPal
@RaghavPal 6 жыл бұрын
Hi Pritam, this can help you stackoverflow.com/questions/45991690/load-distribution-of-transaction-in-jmeter www.blazemeter.com/blog/how-use-jmeters-throughput-constant-timer
@Rukhsar2114
@Rukhsar2114 5 жыл бұрын
Hi Raghav, I need more clarity on the difference between Ramp up time and Ramp up steps. Thanks!
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Rukshsar, ramp up time is the time to ramp up to complete user load. for example if you selected 100 users and ramp up time is 10 sec. So the complete user load will be done in 10 sec. That is 10 users will be added every 1 sec until 10 sec and then the test will run with full user load. Now, here without providing step count the ramp up will be distributed as per the time. However if you want the ramp up to happen in steps, like say 2 steps, Now the load will be ramped up to 100 users in 10 sec but not gradually, but in 2 steps. That is it will start with 50 users and then after 5 sec another rampup step and will add 50 more. Now here the question may be that after 5 sec the user load became full i.e. 100 users and that is correct. We have to see what we need as per our application, Usually the ramp up can be gradual.
@bijju1331
@bijju1331 2 жыл бұрын
@@RaghavPal Hi , in case for 100 users and 2 steps count, 50 users will get ramped up at the end of 5th sec , or are distributed across 5 sec.
@deepakMCA2009knit
@deepakMCA2009knit 6 жыл бұрын
So The Concurrency Thread Group doesn’t provide the ability to define initial delay, step transition and ramp-down - which the Stepping Thread Group does means that it is not better than STG? We are loosing some better options in this one. Don't know why they deprecated such a good thread option !
@RaghavPal
@RaghavPal 6 жыл бұрын
I too liked Stepping Thread group. This link can answer few queries - groups.google.com/forum/#!topic/jmeter-plugins/TF6GF2XidYQ
@deepakMCA2009knit
@deepakMCA2009knit 6 жыл бұрын
Getting an issue. i crated a plan with Target Concurrency: 100 Ramp up time 40 Sec Ram up steps 10 Hold target: 40 Iteration: 1 Action to be taken after a sample error: Continue When execution started it never ends and keep going on. Don't know why it not stopped and why it keep running.
@danum442
@danum442 Ай бұрын
Very useful! TY!
@RaghavPal
@RaghavPal Ай бұрын
Glad it was helpful Shaun
@rakeshkumar-qj4om
@rakeshkumar-qj4om 6 ай бұрын
if i run 12 users in the concurrency thread group results show more than 12 users more
@RaghavPal
@RaghavPal 6 ай бұрын
Rakesh Each thread in JMeter can execute multiple iterations of the test plan. If a thread completes its tasks quickly, it might start a new iteration, leading to more user transactions than expected -
@rakeshkumar-qj4om
@rakeshkumar-qj4om 6 ай бұрын
@@RaghavPal Then how to stop the iteration?
@RaghavPal
@RaghavPal 6 ай бұрын
It will be as per your setup and configuration.. if you have set a fixed no of threads it will stop on reaching that no.
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
When we use this concurrency thread and why we use thread group
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rohit, The concurrency thread group provides some extra options that you may not find in the default thread group. You get to select ramp up time and steps , hold target time etc
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
@@RaghavPal what are the extra option sir
@RaghavPal
@RaghavPal 4 жыл бұрын
As I said, You get to select ramp up time and steps , hold target time etc
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
@@RaghavPal sir what is response time and how can we calculate
@RaghavPal
@RaghavPal 4 жыл бұрын
Response time, you will get in the results (Listeners)
@AbhimanyuKumar-qg6dj
@AbhimanyuKumar-qg6dj 2 жыл бұрын
Hii Raghav, The number of threads users is 5000 in load testing but the run is only 2000
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Abhimanyu, it will depend on how you have set the load distribution in the Concurrency Thread Group, Can get some more details here medium.com/@kalyani1729mittapalli/load-testing-using-concurrency-thread-group-in-apache-jmeter-63388ac3ec17
@claudivanmoreira3263
@claudivanmoreira3263 4 жыл бұрын
What is the difference between the Concurrency Thread Group and Step Thread Group plugins?
@RaghavPal
@RaghavPal 4 жыл бұрын
Mostly do the same stuff, Stepping Thread Group is deprecated now
@abdulwadoodaziz3371
@abdulwadoodaziz3371 5 жыл бұрын
hello can u make video how to calculate throughput in j-meter?
@RaghavPal
@RaghavPal 5 жыл бұрын
I will do Abdul
@abdulwadoodaziz3371
@abdulwadoodaziz3371 5 жыл бұрын
@@RaghavPal thanks waiting u can make video on how to calculate it and which parametrs we should see for checking performnce of any website
@RaghavPal
@RaghavPal 5 жыл бұрын
I will check on thia Abdul
@abdulwadoodaziz3371
@abdulwadoodaziz3371 5 жыл бұрын
@@RaghavPal sure make video which important factor we should check for performnce of j meter to check web application
@rohitmisra9008
@rohitmisra9008 4 жыл бұрын
I use normal thread group THREADS ARE 50 RAMP UP TIME IS 2MINUTE LOOP COUNT IS 2 SO TOTAL NO OF SAMPLE IN THE AGGREGATED REPORT IS 100 BUT SOME TIMES IT SHOW 110 Or 105 why
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rohit, have you also set the duration for the test,
@comedyjolt
@comedyjolt 7 жыл бұрын
How to test web services in JMETER 4.0
@RaghavPal
@RaghavPal 7 жыл бұрын
Hi Gaurav, see this - kzbin.info/www/bejne/m5K4aGxrZsuBq7M For other videos on JMeter : JMeter Beginners - kzbin.info/aero/PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c JMeter Intermediate - kzbin.info/aero/PLhW3qG5bs-L-PpK83CC_m_bWd_722tvgk JMeter Advanced - kzbin.info/aero/PLhW3qG5bs-L_Eosy1Nj1tKHC5jcBAVkPb JMeter Tips n Tricks - kzbin.info/aero/PLhW3qG5bs-L-oMT1Cnrurt7gEaLrRub2V All Playlists - kzbin.info/door/Tt7pyY-o0eltq14glaG5dgplaylists
@amraboeleneen2221
@amraboeleneen2221 5 жыл бұрын
i have seen something , that number of concurrent users != number of requests to be done.. I am currently working on a research regarding that , i appreciate your help =) , what i want is 0-1000 thread , each does only 1 request
@RaghavPal
@RaghavPal 5 жыл бұрын
HI Amr, depends on your configuration. If generally define the number of users and not the number of requests, So one user can make multiple requests. You will get more information on this online.
@amraboeleneen2221
@amraboeleneen2221 5 жыл бұрын
@@RaghavPal actually i have searched alot for that, even i played with the throughput controllers and nothing works, i just cant do it with a concurrency thread group
@RaghavPal
@RaghavPal 5 жыл бұрын
I will check on this
@amraboeleneen2221
@amraboeleneen2221 5 жыл бұрын
​@@RaghavPal I appreciate that very much
@melvinasyahputrikabeakan7148
@melvinasyahputrikabeakan7148 Жыл бұрын
Thank u so much master
@RaghavPal
@RaghavPal Жыл бұрын
You are welcome Melvina
@Imdeeparajan
@Imdeeparajan 4 жыл бұрын
Your videos are good But reduce your pace .Its hard to understand you
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Deepa, you can control the speed from player settings. www.businessinsider.in/tech/how-to-speed-up-youtube-videos-as-much-as-2-times-the-normal-speed-or-slow-them-down/articleshow/70847067.cms
@Imdeeparajan
@Imdeeparajan 4 жыл бұрын
@@RaghavPal Hi Raghav .will try it.. Hope I didn't offend you. Do you take sessions for Jmeter and Loadrunner Then please let me know
@RaghavPal
@RaghavPal 4 жыл бұрын
No worries Deepa, Infact I do understand that everyone will not know of the settings and therefore in my current videos I am putting this message so everyone will know. As of now I have not planned for personal batches, You can check more info here - automationstepbystep.com/
@yazh403
@yazh403 3 жыл бұрын
ITS VERY BASIC THINGS. BUT KNOW ONE SAY WITH GOOD CLARITY. HOW TO ACHIEVE TPM ?? IN PT , IS THIS VERY DIFFICULT?. PLZZZZ TRY TO GIVE GOOD CLARITY
@RaghavPal
@RaghavPal 3 жыл бұрын
I will plan better
@keshavdwivedi5192
@keshavdwivedi5192 7 жыл бұрын
Thanks raghav
@RaghavPal
@RaghavPal 7 жыл бұрын
you're welcome Keshav
@qualityengineer9041
@qualityengineer9041 5 жыл бұрын
I have created 10 threads it repeated again and again and show hundred's of sample# its so confusing me can you please explain whats happening . is it connecting the target link again and again to create load ( I have created test plan for load or stress testing) these are the links of screenshot's prntscr.com/n2hakj prntscr.com/n2haug
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, this is correct, see you have set thread to 10. If you see the result, check ThreadName column, the thread count never goes beyond 10. However these 10 users working for ~30 sec can send multiple requests. (Its not that one user will send only one request and then die). Do therefore you have multiple samples. Hope this is clear
JMeter Beginner Tutorial 17 - How to setup realistic performance test-PACING
11:03
Automation Step by Step
Рет қаралды 89 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
JMeter Beginner Tutorial | How to Create and Run REST API | Get Post Put Delete
18:24
JMeter Beginner Tutorials | Tips n Tricks 5 💡 How to use JSON Extractor
14:14
Automation Step by Step
Рет қаралды 47 М.
31-Concurrency Thread Group
16:42
Phani Nagula
Рет қаралды 11 М.
Spike Testing | Ultimate Thread Group | JMeter | Performance Testing
8:45
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН