How to increase threads until error in Jmeter

huangapple go评论145阅读模式
英文:

How to increase threads until error in Jmeter

问题

你能否在Jmeter测试计划中以每5秒增加一个新用户的方式增加线程数,直到发生错误为止?

我尝试使用Stepping Thread Group,但似乎必须在开始时提供线程数量,而不能动态分配。

英文:

Is there any way in which you can increment the number of threads in a Jmeter test plan, with a new user every 5 seconds until an error occurs?

I have tried using Stepping Thread Group, but it seems like I have to provide the number of threads for the beginning, and it's not dynamically allocated.

答案1

得分: 0

理论上,您可以使用JMeter创建的虚拟用户的最高数量是 2147483647

对于HTTP和其他基于TCP的协议,实际可行的数量是 65535

在普通的JMeter 线程组中,ramp-up的公式为:

用户数量 - 1 * 增长期(以秒为单位)

这会得到 19660200 的增长时间。

英文:

Theoretical highest number of virtual users you can create with JMeter is 2147483647.

Practical amount for HTTP and other TCP-based protocols is 65535

With normal JMeter Thread Group the formula for the ramp-up would be:

number of users - 1 * ramp-up period in seconds 

which gives 19660200 ramp-up time.

huangapple
  • 本文由 发表于 2023年4月11日 15:04:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/75983227.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定