线程和迭代次数如何影响测试以及JMeter的最高收益是多少?线程限制 [英] How do threads and number of iterations impact test and what is JMeter’s max. thread limit
问题描述
-
请告诉我最大数量上限.我可以在JMeter 2.4中使用哪些线程来进行负载测试?
Would you please tell me the max limit of no. of threads that i can use in JMeter 2.4 for conducting a load test?
在单个循环中采用所有线程还是采用较少的否有任何区别.线程并初始化循环以实现相同的编号.用户/线程?
Is there any difference in taking all threads in a single loop or by taking less no. of threads and initialize loop to achieve same no. of users/threads?
示例:
No. of threads=500
Ramp up=1000
Loop=1
是否与
No. of threads=50
Ramp up=100
Loop=10
还是结果有什么不同?
or is there any difference in terms of result?
推荐答案
-
最大线程数由许多因素决定,请参见此答案 https://stackoverflow.com/a/11922239/460802
您的建议有很大的不同.
There is a big difference in what you are proposing.
- "500个线程,循环1"表示一次执行一次循环就同时有500个线程.
- "50个线程,循环10"表示在同一时间只有50个线程进行了十次循环.
理论上,您获得的结果数相同(500),但是您以不同的方式访问服务器.
In theory you get the same number of results (500), but you are hitting the server in a very different manner.
这篇关于线程和迭代次数如何影响测试以及JMeter的最高收益是多少?线程限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!