JMeter 同步请求和同步定时器 [英] JMeter Synchronizing requests and Synchronizing Timer

查看:27
本文介绍了JMeter 同步请求和同步定时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想归档包含 HTTP 请求的各种事务控制器 (TA),每次循环总是同时触发.目前,他只是同步发送第一个 TA,第二个在 1-5 秒之间变化.

I want to archive that various transaction controller(TA) with containing HTTP requests are always fired at the same time for each loop. Currently, he's just sending the first TA synchronized and the second one varies between 1-5 sec.

JMeter 设置:

  • 线程组:5 个线程,0 个加速,5 个循环

  • Thread Group: 5 Threads, 0 Ramp up, 5 Loops

同步计时器:0 和 30000 超时

Synchronizing Timer: 0 and 30000 Timeout

结果

  • 查看表格中的结果(用 Excel 过滤交易控制器)

推荐答案

您滥用了同步计时器.如果您想对采样器进行分组,则需要将 5 放入要分组的模拟用户数"输入中.如果您保持 0 - 不会有任何影响.

You're misusing Synchronizing Timer. If you want to group samplers you need to put 5 into "Number of Simulated Users to Group By" input. If you keep 0 - there will be no effect.

另外最好删除顶部同步计时器(在线程组下).

Also it's better to remove top Synchronizing Timer (under the Thread Group).

请参阅使用 JMeter 同步计时器文章,了解有关如何使用的详细信息使用和放置计时器的位置.

See Using the JMeter Synchronizing Timer article for detailed information on how to use and where to put the timer.

这篇关于JMeter 同步请求和同步定时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆