简体   繁体   English

在JMeter中设置分布式测试中的线程数

[英]Setting Number of Threads in Distributed Testing in JMeter

I have to test an application with 1000 Users. 我必须用1000个用户测试一个应用程序。 For that, I have set up a load testing environment with 20 machines. 为此,我建立了具有20台计算机的负载测试环境。 Each Machine will generate a load of 50 VUsers. 每台计算机将产生50个VUser的负载。

So, I need a confirmation that the number that I will enter in ' No of Thread (Users) ' will be generated by all the slave machines. 因此,我需要确认我将在“ 线程数(用户) ”中输入的数字将由所有从属计算机生成。 In my case, I should enter 50 and not 1000 here. 就我而言,我应该在此处输入50,而不是1000。

When running in a distributed testing (master/slaves) environment, you have the option of configuring the slaves differently. 在分布式测试(主/从)环境中运行时,可以选择以不同方式配置从属。 You start JMeter on the slaves manually, and then use the master to tell the slaves when to start sending requests to the server(s) being tested. 您可以在从属服务器上手动启动JMeter,然后使用主服务器告诉从属服务器何时开始向被测试的服务器发送请求。 This JMeter document describes the distributed testing environment pretty well. JMeter文档很好地描述了分布式测试环境。

In your case, it sounds like you want the slaves to behave about the same, so setting the number of threads to 50 for each of the 20 slaves is the correct thing to do. 在您的情况下,这听起来像您希望从属服务器的行为大致相同,因此将20个从属服务器中的每个从属服务器的线程数设置为50是正确的做法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM