JMeter负载测试 [英] JMeter Load test

查看:157
本文介绍了JMeter负载测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过在同一毫秒内击中几百次来对URL进行负载测试.我尝试了JMeter,但我可以在同一毫秒内达到2个请求.我的机器无法足够快地创建线程,这似乎是一个问题.有什么解决办法吗?

I want to load test a URL by hitting it few hundred times at same millisecond . I tried JMeter but I could hit 2 request at same millisecond. This seems to be problem that my machine cant create threads fast enough . Is there any solution to the issue ?

推荐答案

在JMeter中,您可以使用同步计时器将其设置为100,这样所有线程将等待直到有100个可用线程并击中服务器:

In JMeter you can use synchronizing timer setting it to 100, this way all threads will wait until there are 100 available and hit the server:

另一种解决方案是增加线程数,以达到此吞吐量. 在JMeter的下一个版本(2.8)中,您将能够按需创建线程(一旦需要就创建). 无论如何,在同一毫秒内击中几百次是很高的负担,因此您必须正确地调整JMeter.

Another solution is to increase the number of Threads so that you hit this throughput. In next coming version (2.8) of JMeter you will be able to create threads on demand (created once needed). Anyway hitting few hundred times at same millisecond is a high load so you will have to tune JMeter correctly.

致谢

菲利普

这篇关于JMeter负载测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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