在执行期间增加JMeter中的线程数 [英] Increase number of threads in JMeter during execution

查看:702
本文介绍了在执行期间增加JMeter中的线程数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在JMeter中进行了性能测试,并希望以此测试最大的系统性能/吞吐量.因此,例如在错误率低于2%的情况下,应增加活动线程的数量.我找到了Constant Throughput Timer,将其放入Thread Group,但它只会暂停或减慢线程速度.我尝试使用属性${__P(throughput,)}如下定义它,但不确定该属性的正确值是什么.我看不到JMeter如何测量系统的最高性能.

I have a performance test in JMeter and would like to test maximum system performance/throughput with it. So number of active threads should be increased for example while Error rate is under 2 %. I found Constant Throughput Timer, put it into Thread Group but it only pause or slow down threads. I tried define it as follows, with a property: ${__P(throughput,)}, but not sure what should be correct value for this property. I can't see how JMeter could measure system maximal performance.

推荐答案

在香草" JMeter中没有此类功能,可通过插件实现,请查看:

There is no such functionality in the "vanilla" JMeter howere it is possible with plugins, check out:

  • Concurrency Thread Group
  • Throughput Shaping Timer

它们可以通过反馈循环连接在一起,因此并发如果需要,线程组将添加更多线程,以达到每秒所需的请求数.

They can be connected together via feedback loop so Concurrency Thread Group will add more threads if needed to reach the desired number of requests per second.

您可以使用 JMeter插件管理器

这篇关于在执行期间增加JMeter中的线程数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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