如何使用jmeter模拟1000个并发用户 [英] how to simulate 1000 concurrent user using jmeter

查看:1662
本文介绍了如何使用jmeter模拟1000个并发用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以模拟1000至10000个用户到jmeter吗?

如果可以,怎么办?

在1个线程组中仅测试1k用户:

线程用户= 1000, 加速= 10,这是否意味着它将在10秒内测试1000个用户?, Loopcount = 1,如果我在此处输入10,是否有一个缺点,这是否意味着1000x10用户=将模拟10k用户?

1个线程组可以模拟1000个并发用户吗?

解决方案

我本可以将其写为注释,但超出了字符范围.

@ Quality-Expert给出的定义是正确的,但是他对测试设置的理解是错误的.

10个循环计数并不意味着1000 * 10

这意味着在给定的时刻只有1000个并发用户会出现,但是他们将执行相同的操作10次.这并不意味着有10000个用户.

Rampup为10并不意味着1000位用户使用了10秒钟

这意味着100个用户将在1秒内上线,而下100个用户将在下一秒内上线,即2秒内将有200个用户上线,这就是1000个用户将在10秒钟内上线的方式.

如果您不提供任何测试持续时间,则测试将自行终止,线程完成其任务后将不会继续.如果您要对1000位用户进行测试,请提供一些测试持续时间,即10分钟.因此,测试将与1000个并发用户一起运行10分钟. Rampup只是负载测试系统的预热时间,因此它不会面对1000个用户的突然负载.

大约有10,000个负载,需要使用将产生负载的Jmeter分布式计算机/客户端集或使用云负载测试工具.

Is that possible to simulate 1000 to 10000 user to jmeter?

If so how?

in 1 thread group only test 1k user:

Thread user = 1000, Ramp up = 10 ,is this means it will test 1000 user in 10sec?, Loopcount = 1, is there a disadvantage if I put 10 here ,is this means 1000x10 user = it will simulate 10k user?

Is 1 thread group can simulate 1000 concurrent user?

解决方案

I could have written it as comment, but it went out of characters.

definitions given by @Quality-Expert are correct but his understanding of your test setup is wrong.

10 loop count doesnt mean 1000*10

It means at a given moment only 1000 concurrent users will be present but they will perform same action 10 times. It doesn't mean 10000 users.

Rampup is 10 doesnt mean 1000 users for 10 seconds

It means 100 users will come online in 1 second and next 100 users will online in next second i.e. in 2 seconds 200 users will come online and this is how 1000 users will come online in 10 seconds.

If you dont provide any test duration test will end their itself, it wont continue after threads have finished their task. If you want to load test with 1000 users then provide some test duration i.e. 10 mintues. Thus test will run with 1000 concurrent users for 10 min. Rampup is just warm up time for system under load test so that it wont face sudden load of 1000 users.

About 10000 load, use need to use distributed set of machines/client of Jmeter which will generate that load or use cloud load testing tools.

这篇关于如何使用jmeter模拟1000个并发用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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