The JMeter Ultimate Thread Group is a plugin thread group that draws a load profile from a table. Each row starts its own set of threads with five settings: Start Threads Count, Initial Delay, Startup Time, Hold Load For and Shutdown Time. Rows run independently and add up, so a base load, steps and a spike on top can all live in one group.
We ran it in JMeter 5.6.3 with version 3.1.1 of the Custom Thread Groups plugin against a local API, and compared the active threads with what the table promised. The schedule matched within one thread at every point we checked. The surprises were elsewhere: every thread is created when the test starts, Shutdown Time is a ramp-down rather than a grace period, and a loop count turns a 30-second row into a 1.6-second one.
Key Takeaways
- Install the Custom Thread Groups plugin (
jpgc-casutg) through the Plugins Manager, and the group appears under Add > Threads (Users). - Each row adds threads: Initial Delay is when the row begins, Startup Time spreads its threads over that many seconds, Hold Load For keeps them running, Shutdown Time stops them gradually.
- Every thread in every row is created at test start and waits for its slot. A 2,000-thread spike planned for second 40 had the JVM holding 2,046 threads at second 5, while 10 were working.
- A row ending never cuts a request in flight: each thread finishes its current request, then stops. Shutdown Time spreads those stops out; it does not wait for slow requests.
- Leave the loop count on Infinite. A loop count of 3 ended a row planned for 30 seconds after 1.6 seconds.
What is the Ultimate Thread Group in JMeter?
It is one of the thread groups in the Custom Thread Groups plugin from jmeter-plugins.org, alongside the Concurrency, Stepping, Arrivals and Free-Form Arrivals groups. Instead of the standard Thread Group’s one ramp-up and one duration, it takes a table. Its plugin page sums it up: an unlimited number of schedule rows, each with its own ramp-up, hold and shutdown time, and a preview graph of the load it will produce.
That makes it the usual choice for profiles a single ramp cannot draw: spike tests with a burst on top of a base load, stepped capacity tests, or a morning, peak and evening pattern. Like the standard group, it is a closed model: it controls how many threads run, and each thread waits for its response before sending the next request. Our overview of JMeter thread groups covers the built-in groups and the other plugins.
How do you install the Ultimate Thread Group?
Through the Plugins Manager: open Options > Plugins Manager, find “Custom Thread Groups” on the Available Plugins tab, tick it and click Apply Changes and Restart JMeter. After the restart, right-click the Test Plan and choose Add > Threads (Users) > jp@gc - Ultimate Thread Group.
If the Options menu has no Plugins Manager entry, install that first: our guide to installing the JMeter Plugins Manager covers it.
For a machine without the GUI, such as a CI runner or a load generator, copy the plugin jar into lib/ext and its one dependency, jmeter-plugins-cmn-jmeter, into lib. That is what we did for these runs: jmeter-plugins-casutg-3.1.1.jar and jmeter-plugins-cmn-jmeter-0.6.jar from Maven Central, checked against their published checksums. Version 3.1.1 (May 2025) is the latest release, built against JMeter 5.2.1 according to its POM.
What do the five columns mean?
Each row of the table describes one batch of threads, the first column sets how many threads it adds, and the other four set its phases, in seconds. The plugin’s source applies them per thread: in a row of N threads with a Startup Time of R seconds, threads start R/N seconds apart, so the first one starts at Initial Delay plus R/N and the last at Initial Delay plus R. Rows do not wait for each other.
| Column | What it does | In our first row |
|---|---|---|
| Start Threads Count | Threads this row adds | 20 |
| Initial Delay, sec | Seconds after the test starts before the row begins | 0 |
| Startup Time, sec | Seconds over which the row’s threads start, evenly spaced | 10 |
| Hold Load For, sec | Seconds all of the row’s threads keep running after the last one starts | 40 |
| Shutdown Time | Seconds over which the row’s threads stop, evenly spaced | 10 |
So a row ends at Initial Delay + Startup Time + Hold Load For, plus up to Shutdown Time while its threads stop. The row above runs from 0 to 60 seconds. One reading trips people up: the “Hold Load For” clock starts when the last thread of the row has started, not when the row begins.
How do you build a spike on top of a base load?
With two rows: one for the base load and one for the spike, delayed to when the spike should arrive. We used 20 threads as the base (ramp over 10 seconds, hold 40, stop over 10) and added 30 threads at second 20, started over 2 seconds and held for 10, with no shutdown time. Each thread sent one request to an endpoint that answers in 500 ms, in a loop:
| Row | Start Threads Count | Initial Delay | Startup Time | Hold Load For | Shutdown Time |
|---|---|---|---|---|---|
| Base | 20 | 0 | 10 | 40 | 10 |
| Spike | 30 | 20 | 2 | 10 | 0 |
We worked out the active threads the plugin’s formula predicts and compared them with the threads that were actually running, from each thread’s first request to the end of its last one:
| Second | Planned | Measured |
|---|---|---|
| 5 | 10 | 9 |
| 10.5 | 20 | 20 |
| 21 | 35 | 34 |
| 22.5 | 50 | 50 |
| 31.9 | 50 | 50 |
| 32.5 | 20 | 20 |
| 52 | 16 | 17 |
| 59 | 2 | 3 |
| 60.5 | 0 | 0 |
The schedule held within one thread throughout. The gaps are timing: a thread is counted from its first request, a few tens of milliseconds after its planned start, and stays active until its last 500 ms request ends. The base row’s threads started between 0.55 and 10.01 seconds, the spike’s between 20.07 and 22.0. The spike’s 30 threads stopped at 32 seconds, finishing their last 500 ms requests by 32.48, and the base row stopped one thread every half second from 50.8 to 60.3 seconds. The run recorded 2,670 requests and no errors.
If the profile is a single ramp in steps, our guide to the JMeter ramp-up period compares the plugin groups that draw one.
Why does the Ultimate Thread Group use so much memory?
Because it creates every thread of every row when the test starts. The plugin’s start method builds all threads up front and gives each a start time; a thread whose row begins at minute 10 exists, idle, for those 10 minutes. Each JMeter thread is an operating system thread with its own stack and its own copy of the test plan’s elements, so a large late row costs memory from the first second.
We ran 10 threads for 60 seconds, then the same plan with a second row of 2,000 threads starting at second 40, and sampled the JMeter process every half second:
| 10 threads only | Plus 2,000 threads from second 40 | |
|---|---|---|
| JVM threads at second 5 | 47 | 2,046 |
| Memory at second 5 | 223 MB | 332 MB |
| Threads sending requests at second 20 | 10 | 10 |
| Memory at second 48, during the spike | 231 MB | 1,074 MB |
All 2,010 threads were created within 153 ms of the start. For 40 seconds, 2,000 of them did nothing but wait. On a load generator sized for the spike this costs little: the 2,000 idle threads added about 110 MB from the first seconds, and most of the memory, up to 1,074 MB, arrived only once they ran.
The Concurrency Thread Group from the same plugin works the other way. Its plugin page says it does not create all threads up front, and it starts new threads during the run when fewer than the target are running. It draws one ramp, optionally in steps, then holds, and has no initial delay, so a base load plus a delayed spike needs two groups and a way to hold the second back.
What happens when a row ends with requests still running?
Nothing is cut off. A thread checks its end time before it starts the next request, so a request in flight when the row ends runs to completion, and only then does the thread stop. JMeter logs “Stopping because end time detected by thread” for each one. We ran 10 threads against an endpoint that takes 4 seconds, with a hold of 10 seconds:
| Shutdown Time | Last request ended | Requests ending after the 10 s mark | Errors |
|---|---|---|---|
| 0 | 12.1 s | 10 | 0 |
| 10 | 20.1 s | 22 | 0 |
With no Shutdown Time, all 10 threads were in the middle of their third request at second 10, and all 10 finished it at 12.1 seconds. With 10 seconds of Shutdown Time, the threads’ end times were spread from 11 to 20 seconds, and each thread stopped after the request it was in when its end time passed: 2 threads at 12.1 seconds, 4 at 16.1 and 4 at 20.1.
So Shutdown Time is a ramp-down, the mirror of Startup Time, not a grace period for slow requests. Slow requests get their grace anyway. This differs from JMeter’s built-in Open Model Thread Group, which interrupts requests still in flight when its schedule ends and records them as errors.
Which settings break the schedule?
Three settings outside the table change what the table does: a Loop Count other than Infinite, an error action of Stop Thread, and the threads_schedule property. Each one passed without a warning in our runs, and only the results showed the difference.
A loop count. The group has the standard Loop Count field, set to Infinite by default, and a thread stops at whichever comes first: its end time or its last loop. With a loop count of 3, our 10 threads each sent 3 requests of 500 ms and stopped; the row planned for 30 seconds was over after 1.58 seconds, and the whole run, JVM start included, took 4.15 seconds. Leave it on Infinite and let the table set the duration.
“Stop Thread” on a sampler error. The group never replaces a thread that stops. We ran 20 threads against an endpoint that fails 5% of requests, with a 200 ms timer, for 30 seconds, and the error action set to Stop Thread in this group and then in a Concurrency Thread Group:
| Active threads at | 5 s | 10 s | 20 s | 29 s |
|---|---|---|---|---|
| Ultimate group | 6 | 4 | 1 | 0 |
| Concurrency group | 19 | 19 | 20 | 19 |
The Ultimate group’s load decayed to nothing, 517 requests in all, while the Concurrency group started 161 threads over the run to stay at its target and sent 2,896. If errors should end a user’s session but not shrink the load, use the Concurrency Thread Group or the “Start Next Thread Loop” action.
The threads_schedule property. The plugin reads a schedule from a JMeter property as spawn(threads, delay, startup, hold, shutdown) directives, so a CI job can pass -Jthreads_schedule="spawn(2,0s,0s,10s,0s)" without editing the plan. The property applies to every group of this type in the plan. In our plan with two groups, of 5 and 8 threads for 20 seconds, both ran 2 threads for 10 seconds, and the only signs in the log were INFO lines: “GUI threads profile will be ignored” and “Setting threads profile from property threads_schedule”.
How does it compare with JMeter’s other thread groups?
Of the four groups below, the Ultimate group is the one that draws any number of overlapping rows, at the cost of creating every thread at the start and never replacing one that stops. The Concurrency Thread Group draws a single ramp but creates and replaces threads as needed, and the Open Model Thread Group schedules request rates instead of users. Pick by the profile you need and by whether the load is a number of users or a rate of requests:
| Thread group | Draws | Creates threads | Replaces stopped threads |
|---|---|---|---|
| Thread Group (built in) | One ramp, then a duration or loop count | All at start, unless “Delay Thread creation until needed” is ticked | No |
| Ultimate Thread Group | Any number of overlapping rows | All at start | No |
| Concurrency Thread Group | One ramp, optional steps, then a hold | When needed | Yes |
| Open Model Thread Group (built in, JMeter 5.5+) | A schedule of request rates | When needed | Not applicable: it schedules arrivals, not threads |
For a profile defined as requests per second rather than users, the built-in Open Model Thread Group or the Arrivals Thread Group fits better, or a Constant Throughput Timer on a fixed number of threads. The Ultimate group answers “how many users, when”.
Running JMeter tests with LoadFocus
LoadFocus runs uploaded JMeter test plans on cloud machines from 25 regions, with the Custom Thread Groups plugin available on its engines. The load shape, though, comes from the test settings, not from the plan: each thread group, apart from one-shot setUp and tearDown groups, runs with the users, ramp-up and duration (or iterations) you set for the run. The Ultimate group’s table therefore does not carry over; its samplers, timers and assertions do.
To reproduce a stepped profile, set the ramp-up and steps in the test settings. To add a spike during a run, the Enterprise plan can change the number of users while the test is running. See JMeter load testing in the cloud for the settings.
Frequently Asked Questions
How do I add the Ultimate Thread Group in JMeter?
Install “Custom Thread Groups” from the Plugins Manager’s Available Plugins tab and restart JMeter. Then right-click the Test Plan and choose Add, Threads (Users), jp@gc - Ultimate Thread Group. Without the GUI, copy the plugin jar into lib/ext and its jmeter-plugins-cmn-jmeter dependency into lib.
What is the difference between the Ultimate Thread Group and the Concurrency Thread Group?
The Ultimate group draws any number of overlapping rows, each with its own delay, startup, hold and shutdown, and creates every thread when the test starts. The Concurrency Thread Group draws one ramp with optional steps and a hold, creates threads only when needed, and starts new ones when threads stop, so it keeps its target concurrency.
What is Shutdown Time in the Ultimate Thread Group?
It is the number of seconds over which a row’s threads stop, evenly spaced, once the hold time ends, so it works as a ramp-down. Slow requests do not need it: in LoadFocus test runs in November 2026 no request was cut off even with a Shutdown Time of 0, because each thread finishes the request it is running before it stops.
Why do my Ultimate Thread Group threads stop early?
The usual causes are a Loop Count other than Infinite, which ends each thread after that many iterations whatever the table says, and an error action of Stop Thread, which ends threads the group never replaces. A threads_schedule property passed on the command line also replaces the table in every such group in the plan.
Can the Ultimate Thread Group run a fixed number of requests per second?
Not by itself. It sets how many threads run at each moment, and each thread waits for its response, so the request rate falls when the server slows down. For a target rate, add a Constant Throughput Timer or use the Arrivals Thread Group or JMeter’s Open Model Thread Group.
Sources
- Ultimate Thread Group page (columns,
threads_scheduleproperty andspawn()syntax), Custom Thread Groups and Concurrency Thread Group pages: jmeter-plugins.org/wiki/UltimateThreadGroup and jmeter-plugins.org/wiki/ConcurrencyThreadGroup, read 26 November 2026. - Plugin source (thread scheduling, threads created at start, the “GUI threads profile will be ignored” message, default Infinite loop count): jmeter-plugins-casutg 3.1.1 sources jar (
UltimateThreadGroup.java,AbstractSimpleThreadGroup.java,UltimateThreadGroupGui.java) and POM, repo1.maven.org, kg/apc/jmeter-plugins-casutg/3.1.1, read 26 November 2026. Latest version: the artifact’s maven-metadata.xml, 26 November 2026. - JMeter’s Thread Group, Open Model Thread Group and scheduler: Apache JMeter User’s Manual, Component Reference, jmeter.apache.org/usermanual/component_reference.html, November 2026.
- LoadFocus JMeter runs, thread group settings, regions and live scaling: loadfocus.com/jmeter-load-testing, read 26 November 2026.
- Test runs: Apache JMeter 5.6.3 in non-GUI mode with jmeter-plugins-casutg 3.1.1 and jmeter-plugins-cmn-jmeter 0.6, on Java 17.0.20, against a local Node.js 23.11.1 test API on an Apple M1 Max, 26 November 2026. Active threads come from each thread’s first request start and last request end in the results file; JVM threads and memory were sampled every half second. Timings show patterns, not benchmarks.