性能测试期间如何在jmeter中执行并发10000K线程? [英] How can I execute concurrent 10000K thread in jmeter during performance test?
问题描述
是否可以在jmeter中执行10000个并发用户?
如果可以,怎么办?
这种情况下的准备时间应该是多少?
JMeter对每个 2,147,483,647 >
问题是:您是否有足够好的硬件来在一台计算机上模拟10,000个用户.检查过程如下:
- 确保遵循 JMeter最佳做法
- 在JMeter端设置对CPU,RAM,网络,交换,磁盘使用情况的监视,可以使用随着时间推移活动的线程"侦听器来查看您能够从这台计算机上模拟多少用户并外推值以确定使用 解决方案
JMeter's limit of virtual users per Thread Group is very high, to be precise it's 2,147,483,647
The question is: do you have good enough hardware to simulate 10 000 users from a single machine. The process of checking it looks as follows:
- Make sure to follow JMeter Best Practices
- Set up monitoring of the CPU, RAM, Network, Swap, Disk usage on JMeter side, it can be done using JMeter PerfMon Plugin
Start with 1 virtual user and gradually increase the load at the same time looking into CPU, RAM, etc. usage. Here there could be 2 options:
- you will be able to reach 10 000 users without issues, if this is the case you should be good to go
- you will run out of resources earlier, in this case look into i.e. Active Threads Over Time listener to see how many users you were able to simulate from this machine and extrapolate the value to determine how many load generators you will need for 10 000 users using Distributed Testing approach
There is no golden rule for ramp-up time calculation, the good practice is to onboard the users gradually, this way you will be able to correlate increasing load with increasing response time, increasing number of errors, etc. Adding 3 users each second so in 1 hour you will have 10 000 seems a valid starting point to me.
这篇关于性能测试期间如何在jmeter中执行并发10000K线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!