简体   繁体   English

jmeter 使用 jp@gc 运行比预期更多的线程 - 终极线程组

[英]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 个线程。

Ultimate Thread Group - 140终极线程组 - 140

Actual result实际结果

You have 1 thread, but:您有 1 个线程,但是:

  • it's being started during 1 second它正在 1 秒内启动
  • then it holds the load for 10 seconds然后它将负载保持 10 秒
  • and finally it has 2 seconds to shut down最后它有2秒的时间关闭

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.

相关问题 Jmeter:如何使用“jp@gc - 步进线程组”运行线程组进行 1 次迭代? - Jmeter: how to run a thread-group for 1 iteration using "jp@gc - Stepping Thread Group"? 使用 bzm - JMeter 中的并发线程组时是否需要使用 jp@gc - 吞吐量整形计时器? - Is it required to use jp@gc - Throughput Shaping Timer when you are using bzm - Concurrency Thread Group in JMeter? Jmeter:jp @ gc - WebDriver采样器 - Jmeter : jp@gc - WebDriver Sampler JMeter jp @ gc-HtmlUnit驱动程序配置 - JMeter jp@gc - HtmlUnit Driver Config jp @ gc-JMeter中的WebDriver采样器 - jp@gc - WebDriver Sampler in JMeter 如何分析Jmeter jp @ gc图 - How to analyse Jmeter jp@gc graphs JMETER 4. 0 | JMeter分布式负载测试| jp @ gc-步进线程组| 504网关超时| 非HTTP响应代码| 断言失败 - JMETER 4. 0 | JMeter distributed load testing | jp@gc - Stepping Thread Group | 504 Gateway Time Out | Non HTTP response code | Assertion Failed 如何使用Java代码将jp @ gc-远程驱动程序配置添加到JMeter测试 - How do you add a jp@gc - Remote Driver Config to a JMeter test using java code 使用 JMETER:“jp@gc - WebDriver Sampler”用于响应代码为 500 的 Chrome 驱动程序 - Using JMETER: “jp@gc - WebDriver Sampler” for Chrome Driver with Response Code 500 JMeter jp @ gc参数化控制器-从变量构造对象 - JMeter jp@gc Parametrized controller - construct object from variables
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM