简体   繁体   English

如何在真实条件下模拟Web应用程序的120个并发用户?

[英]How to simulate 120 concurrent users of a web application with real conditions?

How to you simulate > 120 concurrent users using a Load Test Framework such as JMeter? 如何使用负载测试框架(如JMeter)模拟> 120个并发用户 Real concurrency, as far as I understand, would be possible if I would use 120 servers or 120 CPU cores. 据我所知,如果我使用120个服务器或120个CPU核心,真正的并发是可能的。

How did/do you test your web application or service with real conditions? 您是如何/在真实条件下测试您的Web应用程序或服务的?

I have found JMeter to work fine, but I generally use is across 4-5 PC's to get the most accurate results. 我发现JMeter工作正常,但我通常使用4-5 PC来获得最准确的结果。

Although you may believe 120 concurrent users may be difficult to simulate from a single PC, you have to realise that in a real work scenario, 120 simultaneous users will not be accessing the server at exactly the same time, therefore the CPU threading algorithms are sufficient to simulate the load. 虽然您可能认为120个并发用户可能难以从单个PC进行模拟,但您必须意识到在实际工作场景中,120个并发用户将无法在同一时间访问服务器,因此CPU线程算法已足够模拟负载。

What you need to do is to understand the likely usage of your application from your users, ie how many requests per second/minute you will get from a single user and make sure that your test simulates this effectively. 您需要做的是了解用户可能对您的应用程序的使用情况,即您从单个用户获得的每秒/分钟请求数,并确保您的测试有效地模拟了这一点。

So, our technique is to use JMeter running on 5 PCs running different tests, and to monitor the server performance during the tests. 因此,我们的技术是使用在运行不同测试的5台PC上运行的JMeter,并在测试期间监控服务器性能。

There are of course many other products available that for a price are able to better simulate web traffic, but I have always found JMeter to be perfectly good for my needs. 当然还有许多其他产品可以以更低的价格模拟网络流量,但我总是发现JMeter非常适合我的需求。

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

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