英文:
How to make JMETER make 166 requests in 1 second?
问题
我需要对某个服务进行压力测试,我需要进行 10,000 次请求。
如何在 1 秒内正确地进行 166 次请求?
我下面的设置是否正确?(下面是图片)
英文:
I need to make stress testing for some service and I need to make 10 000 requests.
How to make correctly 166 requests in 1 second ?
Have I made correct settings below ? (picture below)
答案1
得分: 1
如果您想要在1秒内进行166次请求并且在这里停止,以下是相关的线程组设置:
如果您想要在1分钟内每秒进行166次请求,总共9960次请求,最好考虑使用配置如下的吞吐量整形定时器:
在这种情况下,使用并发线程组可能是有意义的,它可以通过反馈功能连接到吞吐量整形定时器,这样JMeter可以在当前数量不足以执行所需的每秒请求数时启动额外的线程。
英文:
If you want to make 166 requests in 1 second and stop here is the relevant Thread Group setup:
If you want to make 166 requests per second for 1 minute resulting in 9960 requests it's better to consider using Throughput Shaping Timer configured like:
in that case it makes sense to use Concurrency Thread Group which can be connected to the Throughput Shaping Timer via Feedback Function so JMeter could kick off extra threads if the current amount is not enough to conduct the necessary number of requests per second
答案2
得分: 1
Sure, here's the translation:
- 添加一个新线程组。
- 将线程数设置为166。
- 将启动延迟时间设置为1秒。
- 将循环条件设置为1。
- 然后实现HTTP请求并运行测试。
英文:
- Add a new thread group.
- Add 166 threads as thread count.
- Add 1 sec as Rampup time.
- Set looping condition as 1.
- Then Implement the HTTP request and run the test
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论