更改执行中的请求数

Change number of request in executing

我正在研究 Apache Jmeter。我模拟了 DOS 攻击,所以我有每秒发送 20 个请求的 Http 请求。我想在 运行 和攻击时减少请求,我可以在执行中更改多个线程(用户)吗?或者改用什么?

您可以使用Constant Throughput Timer to change "requests per second" on the fly. Despite "Constant" word in its name "Target Throughput" can be a JMeter Property which can be changed while test is being executed via i.e. Beanshell Server

其他选项正在使用 Throughput Shaping Timer,它具有更多功能和灵活性 w.r.t。 load profile定义,使用更方便