在负载测试期间,一个 Windows 客户端可以模拟多少个线程/用户?
我计划对我们的 ASP/.NET Web 应用程序进行负载测试,并且需要在我们的系统上模拟大约 600 个并发用户。
最初,我们将仅从我们的个人工作站(Windows 7/32 位戴尔(双核处理器))运行负载测试工具(可能是 JMETER 或 WCAT/WAST)。我想知道我可以期望能够从一个客户端模拟多少个用户。
如果我可以轻松地为每个客户端 200 个用户进行测试,我将需要再确定 2-3 个客户端进行测试。
我想根据社区的经验询问在标准 Windows 盒子上每个客户端应该有多少用户。
任何帮助表示赞赏!
I'm planning to do a load test of our ASP/.NET web application and need to simulate about 600 concurrent users on our system.
Initially we'll just be running the load test tools (probabaly JMETER or WCAT/WAST) from our personal workstations which are Windows 7/32 Bit Dells (Dual Core processors). I was wondering about how many users I can expect to be able to simulate from one client.
If I can easily do 200 users per client, I'll need to identify 2-3 more clients for the test.
I wanted to ask the community based on their experience how many users I should expect per client on a standard windows box.
Any help is appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这在很大程度上取决于测试计划本身,并且不能轻易回答。
例如,如果您有 500 个用户只执行一个请求,然后有一个等待计时器五分钟,那么这应该可行。如果所有用户不断地发出请求而不等待,这会给您的计算机带来更多负载。
这取决于所使用的采样器。例如,HTTP 请求比 SOAP 请求成本更低。
它还取决于您活跃的听众。
对于正常的负载测试,我通常有大约 100-300 个活动线程。我建议从这样的数字开始,并监视客户端上的负载(CPU、网络),看看有多少潜力。
This highly depends on the test plan itself and cannot be answered that easily.
If you for example have 500 users that just do one request and then have a waiting timer for five minutes, this should work. If all users constantly do requests without waiting, this will put much more load on your machine.
It depends on the samplers in use. HTTP requests are less costly than SOAP requests for example.
It also depends on the listeners you have active.
For a normal load test I usually have around 100-300 threads active. I would suggest to start with such a number and to monitor the load (CPU, network) on your client to see how much potential there is.
如果没有更多关于测试场景和硬件的细节,很难给出具体的答案。但是我们的负载测试器产品(通常)可以很轻松地处理这一级别的用户一台机器(假设相对现代的硬件)。测试工具应该线性扩展至某个点,因此您应该能够通过与您期望测试的场景类似的场景运行 50 个用户来获得良好的估计。
Without more details about the test scenarios and the hardware, it is hard to give specific answers. But our Load Tester product can (usually) handle this level of users pretty easily on a single machine (assuming relatively modern hardware). The testing tool should scale linearly up to a point, so you should be able to get a good estimate by running 50 users through a scenario that is similar to what you expect to test.