[英]jmeter runs more threads than expected using jp@gc - Ultimate Thread Group
I tried as a test Thread Group with the setting 1 thread, 1 ram-up, 1 loop;我尝试设置 1 个线程、1 个加速、1 个循环作为测试线程组; I verified my Aggregate Report the number of threads are as expected.
我验证了我的聚合报告线程数符合预期。
The problem comes when I run the same request using jp@gc - Ultimate Thread Group , I've tried starting from 1 thread and above but always I get more threads than I set up, see the aggregate report image.当我使用jp@gc - Ultimate Thread Group运行相同的请求时,问题就出现了,我尝试从 1 个线程及以上开始,但我得到的线程总是比我设置的多,请参阅聚合报告图像。
Have tried: ver 5.2.1 and upgraded to 5.3 removing old jmeter versions removing and adding Ultimate Thread Group run through CLI and GUI已尝试:ver 5.2.1 并升级到 5.3 删除旧 jmeter 版本删除和添加 Ultimate Thread Group 通过 CLI 和 GUI 运行
I really appreciate your help.我真的很感谢你的帮助。
jp@gc - Ultimate Thread Group setting img jp@gc - 终极线程组设置 img
Aggregate report result img汇总报告结果 img
Adding more details.... I am expecting reach 140 threads split in 3 different time periods (10, 30, 100), actual result is 1406 threads.添加更多细节......我预计在 3 个不同的时间段(10、30、100)中分割达到 140 个线程,实际结果是 1406 个线程。
You have 1 thread, but:您有 1 个线程,但是:
I don't know how many threads do you "expect", your current setup assumes "API Performance" request for 13 seconds and the number of requests JMeter will execute will depend on your API response time.我不知道您“期望”有多少线程,您当前的设置假定“API 性能”请求持续 13 秒,并且 JMeter 将执行的请求数将取决于您的 API 响应时间。 Looking into test results in the Aggregate Report it's above 2 seconds so 6 requests for 13 seconds are absolutely expected
查看聚合报告中的测试结果,它超过 2 秒,因此 13 秒的 6 个请求是绝对预期的
If for some reason you're looking for having only 1 request with the current setup you can limit the number of requests JMeter will send using Throughput Controller如果由于某种原因您正在寻找当前设置只有 1 个请求,您可以限制 JMeter 将使用吞吐量 Controller发送的请求数量
Check out Choosing The Right Thread Group For Your Scenario article to get more insights regarding which thread group you need to use for various workload types.查看为您的场景选择正确的线程组一文,以获得有关您需要为各种工作负载类型使用哪个线程组的更多信息。
SAMPLES != THREADS样本!=线程
These refer to the number of iterations that are being executed by the bunch of threads generated by JMeter which you have defined as part of "Start Threads Count" in Ultimate Thread Group.这些是指由 JMeter 生成的线程束正在执行的迭代次数,您已将其定义为 Ultimate Thread Group 中“开始线程计数”的一部分。 This value is NOT THREADS
该值不是线程
THREADS - Also considered as virtual users/active threads/active users/simulated users.线程- 也被视为虚拟用户/活动线程/活动用户/模拟用户。 These are values that you are specifying as part of "Start Threads Count" in Ultimate Thread Group.
这些是您在 Ultimate Thread Group 中指定为“Start Threads Count”的一部分的值。 These are not measured anywhere in Aggregate Report listener but you can find it another listener named "jp@gc - Active Threads Over Time"
这些在聚合报告侦听器中的任何地方都没有测量,但您可以找到另一个名为“jp@gc - Active Threads Over Time”的侦听器
Simulating the same scenario as yours模拟与您相同的场景
My Results from Aggregate Report Listener我来自聚合报告侦听器的结果
Your expectation is met in another listener named "jp@gc - Active Threads Over Time"您的期望在另一个名为“jp@gc - Active Threads Over Time”的侦听器中得到满足
Hope this helps!希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.