英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论