英文:
Synchronizing Timer for multiple groups
问题
我需要测试API的高并发负载,因此我创建了10组采样器,每组有100个线程,每个组循环执行两次。然后我尝试通过添加一个通用的同步定时器来实现同时执行,测试中有100个用户进行分组,但似乎不会同时执行所有10组。
将同步定时器移动到每个组中会导致其中一些进一步延迟执行。
我应该使用哪种方法,以及在同步定时器中应该输入什么数字,以使其按我期望的方式工作?
附注:
我看到了类似的问题,但它们的答案仅限于2组,或者仍然无法按我期望的方式工作。
英文:
I need to test the heavy simultaneous load of an API so I have created 10 groups of samplers with 100 threads for each group with looping it twice. Then I tried to get it executed simultaneously by adding a general Synchronizing Timer for the test with a grouping of 100 users but seems that will not execute all 10 groups at once.
Moving Synchronizing Timer to each group will shift some of them even further to be executed in time.
Which approach should I use and what numbers should I put in the Synchronizing Timer to get it to work the way I'm looking for?
PS.
I saw similar questions but answers for them are limited to 2 groups or still are not working the way I wish.
答案1
得分: 1
如果您有10个线程组,每个线程组有100个线程,并且想要同时释放它们,您需要:
- 在与线程组相同级别添加一个同步定时器,详见Scoping Rules用户手册章节以获取更多详细信息。
- 将“要分组的模拟用户数量”设置为1000
截止到JMeter 5.6.2,目前无法配置同步定时器以等待每个线程组的10个用户,顺序将取决于您的逐渐增加设置,先到先服务。
英文:
If you have 10 Thread Groups with 100 threads each and want to release all of them at the same time - you will need to:
- Add Synchronizing Timer at the same level as Thread Groups, see Scoping Rules user manual chapter for more details
- Set "Number of Simulated Users to Group by" to 1000
As of JMeter 5.6.2 there is no way to configure Synchronizing Timer to wait for 10 users of each Thread Group, the order will depend on your ramp-up period settings, first come - first served.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论