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

发布于 2024-10-03 02:31:35 字数 140 浏览 0 评论 0原文

如何模拟> 120 个并发用户使用 JMeter 等负载测试框架?据我了解,如果我使用 120 台服务器或 120 个 CPU 核心,则真正的并发是可能的。

您如何在真实条件下测试您的 Web 应用程序或服务?

How to you simulate > 120 concurrent users using a Load Test Framework such as JMeter? Real concurrency, as far as I understand, would be possible if I would use 120 servers or 120 CPU cores.

How did/do you test your web application or service with real conditions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一身仙ぐ女味 2024-10-10 02:31:35

我发现 JMeter 工作得很好,但我通常在 4-5 台 PC 上使用才能获得最准确的结果。

尽管您可能认为从一台 PC 上模拟 120 个并发用户可能很困难,但您必须意识到,在实际工作场景中,120 个并发用户不会完全相同地同时访问服务器,因此 CPU 线程算法就足够了来模拟负载。

您需要做的是了解用户对应用程序的可能使用情况,即每秒/分钟从单个用户那里收到多少个请求,并确保您的测试有效地模拟了这一点。

因此,我们的技术是使用在 5 台 PC 上运行的 JMeter 运行不同的测试,并在测试期间监视服务器性能。

当然还有许多其他产品可以以一定的价格更好地模拟网络流量,但我一直发现 JMeter 非常适合我的需求。

I have found JMeter to work fine, but I generally use is across 4-5 PC's to get the most accurate results.

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.

What you need to do is to understand the likely usage of your application from your users, i.e. 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.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文