Want to publish 1500 events in 10 mins duration in Jmeter - jmeter

I have a Jmeter script in which I want to publish 1500 events in 10 mins duration.
Is it possible to configure this using "Ultimate Thread Group" or "Throughput Shaping Timer"?
If yes, then how?
I tried using the default thread group in which I used "Number of threads" to 30 & "Loop Count" as 50, so as to make 1500 events. But, how can I achieve this to publish 1500 events in 10 mins?
I am using JMS Point-to-Point as my Sampler.

try using Runtime Controller - The Runtime Controller controls how long its children are allowed to run.
http://jmeter.apache.org/usermanual/component_reference.html#Runtime_Controller

Related

JMeter run testplan for 2 hours with a maximum number of execution per hour

I have a test plan which performs creates an item (the process is more than 500 requests organizied in transaction controllers) in the application. I want to start the testplan to create 160 items with a maximum of 80 items per hour using 5 threads( each thread will select a random creator for the item using random csv Dataset)
I am using arrival thread group like this
the 1,3 arrival per minutes comes from 160 items / 120 minutes.
Jmeter will hang when I execute as above.
How could I achieve this ?
I don't think that Arrivals Thread Group is a good choice, your arrival rate is too low so the Thread Group doesn't start any threads and fails to stop them when the "Hold Target Rate" period ends. If the Arrivals Thread Group is your strict requirement I think you need to request the fix via JMeter Plugins Support Forum
In the meantime I would suggest considering switching to Concurrency Thread Group and Throughput Shaping Timer combination, the suggested configuration and the evidence of its work are in the below image:

Jmeter how to build up from 0 to 1500 after 30 minutes

I need to build up from 0 to 1500 after 30 minutes
End with 1500 visitors at the same time
There are 3 test scripts.
What do I need to fill in into the thread group?
I was thinking about:
number of threads(user) 1500
Ramp-up-period in seconds = 1800
But I am not sure if this is right
Update.
I have it now like this.
my instalation now
It is more or less right, just make sure to set the next values in the Thread Group:
Tick Infinite box next to "Loop Count"
Tick Specify Thread Lifetime box and provide the desired test duration (for example below setup gives you another 30 minutes with 1500 users)
You might find Custom Thread Groups easier to use, they can be installed using JMeter Plugins Manager, for instance here's how your setup will look like for the Concurrency Thread Group
you can see the chart of the anticipated load and the impact of any workload changes

How to create Burst test in Jmeter without using parallel threads?

I have a requirement to create simple Burst test in Jmeter:
10 requests-> 20 requests -> 30 requests
On single worker mode.
Throughput 20ms
Anticipated response time : <=200ms
How can we achieve this with Jmeter without using parallel threads?
I am looking for a simple solution.
Thanks a lot
Add plugin
Ultimate Thread Group to JMeter
Add Ultimate Thread Group component with settings of 3 rows
Set Start Threads Count 10,20 and 30
Use different start times so requests batch will be executed in different times
"Ultimate" means there will be no need in further Thread Group plugins. The features that everyone needed in JMeter and they finally available:
infinite number of schedule record
separate ramp-up time, shutdown time, flight time for each schedule record
and, of course, trustworthy load preview graph
Consider using Throughput Shaping Timer and Concurrency Thread Group combination which provides flexible way of defining load patterns:
They can be connected together using Feedback Function so JMeter will be able to kick off more threads in order to reach the desired throughput (number of requests per second) if current amount is not enough.
Both can be installed using JMeter Plugins Manager:

Why Jmeter Throughput Shaping Timer allows more requests than configured?

I have configured Throughput Shaping Timer in my JMeter test to limit RPS to 50 while the Ultimate Thread Group is running 500 threads. I monitor the test using 'jp#gc-Transactions per Second' listener. I can see many instances where listener shows > 50 TPS. Not sure if I have configured my test wrongly.
My objective is to test my APIs with 50 concurrent hits with 500 sets of data which is in a CSV file. Thus I am using 'jp#gc-Ultimate Thread Group' to run 500 threads - each thread reads 1 data row from csv. To limit to 50 concurrent requests, I am using 'jp#gc-Throughput Shaping Timer' set to 50 rps. I have a beanshell, 1 HTTP Request and a post processor in the Test Fragment.
I am not expecting to see the spikes shown in image 3. Everything should be limited to 50 RPS.
I am using Jmeter 3.0 with Java 1.8 and Windows 7.

How to configure Threads in Jmeter

How to setup delay in jmeter each user Thread Group.
I am trying to run my script Thread group (users) 10,20,30 and 40 and having a delay of 2 min each in them.
How to setup these things in jmeter?
If you want to test your application with 10 users and each user will come after 2 minute delay than pass ramp up as 1200 sec in thread group
The best controller is "jp#gc - Stepping Thread Group". Why it's the best one is, If you use JMeter "Thread Group", we need to change the "Ramp-Up Period" depending on the Threads.
10 User, wee need "Ramp-Up Period" as 20 (1 users for 2 seconds =20/10) to meet you requirements .
20 user, wee need "Ramp-Up Period" as 40 (1 users for 2 seconds =40/20) to meet you requirements .
........etc
If you use "jp#gc - Stepping Thread Group" , we no need to change the "Ramp-Up Period" depending on Thread count.
Just mention "Next, add" :1 threads every 2 seconds,"jp#gc - Stepping Thread Group" will take care Ramp-up irrespective of Thread Count.
You can use Stepping Thread to make your load testing, which helps you to simulate as an apllication used in real time
Just add Constant Timer to your thread group. That's how it is described: "If you want to have each thread pause for the same amount of time between requests, use this timer.".
And if you want to reproduce a special case when you run 30 threads then make a break for 2 mins before next 40 users, then enable "Run thread groups consecutively" option in your test plan settings (top-level element) and add thread with only constant timer between them.
For example if you want to test 40 uesr test with rampup of 10 users.
Each user will take 2 min to rampup. We can use following configuration.

Resources