Web 应用程序负载测试的最佳实践和文献

发布于 2024-10-10 11:44:09 字数 1539 浏览 5 评论 0原文

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

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

发布评论

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

评论(4

少女情怀诗 2024-10-17 11:44:09

首先你的问题证明你确实理解这个问题。有时创建工具、脚本等来生成负载可能非常棘手,但真正的挑战在于评估结果和监控内容。

您的问题的一个非常简单的答案可能是在类似于当前或预期使用情况的类似生产环境中生成负载。如果它运行正常,没有任何崩溃或性能缓慢,通常就足够了。之后,增加负载,看看你的极限在哪里。

当你达到极限时,我的经验是,这纯粹是一个项目预算问题。我们会投入更多的时间/金钱/资源等来评估原因吗?

我是一名测试专业人​​员,我确实建议将负载测试视为开发过程的重要组成部分,但不幸的是,这并不总是符合管理层的决定。

所以你的问题的答案是几乎每个人都需要参与这个过程:
开发人员监控他们的代码;系统管理员需要监控CPU、内存使用情况等;工商管理博士;网络人士;等等。他们可能都需要自己的知识来源才能记录和分析所有这些信息。

一些书籍提示:

应用程序性能测试的艺术:对程序员的帮助和质量保证
http://www.amazon.com/exec/obidos/ASIN/0596520662/

容量规划的艺术:扩展 Web 资源
http://www.amazon.com/exec/obidos/ASIN/0596518579/

Web 应用程序性能测试指南
http://www.amazon.com/exec/obidos/ASIN/0735625700/

First your question proves you do understand the problem. It can sometimes be tricky enough creating the tools, scripts etc. to generate the load but the real challenge lies in evaluating the results and what to monitor.

A very easy answer to your question could be to Generate load on a production-like environment that is similar to current or expected usage. If it runs ok without any crashes or slow performance that is usually good enough. After that, increase load to see where your limits are.

When you reach your limit my experience is that this is purely a project budget question. Will we invest more time/money/resources etc to evaluate the cause.

I work as a test professional and I do recommend respect load testing as a vital part of the development process but unfortunately that is not always in line of what management decides.

So the answer to your question is that almost everyone needs to be involved in this process:
developers to monitor their code; system admins need to monitor CPU, memory usage etc.; DBA; networking guys; and so on. They all probably need their own source of knowledge to be able to get all this info recorded and analysed.

A few book tips:

The Art of Application Performance Testing: Help for Programmers and Quality Assurance
http://www.amazon.com/exec/obidos/ASIN/0596520662/

The Art of Capacity Planning: Scaling Web Resources
http://www.amazon.com/exec/obidos/ASIN/0596518579/

Performance Testing Guidance for Web Applications
http://www.amazon.com/exec/obidos/ASIN/0735625700/

草莓酥 2024-10-17 11:44:09

您是否看过:

JD Meier、Carlos Farre、Prashant Bansode、Scott Barber 和 Dennis Rea 编写的 Web 应用程序性能测试指南

它甚至可以在网络上免费获得。
http://msdn.microsoft.com/en-us/library/bb924375.aspx

Have you seen:

Performance Testing Guidance for Web Applications by J.D. Meier, Carlos Farre, Prashant Bansode, Scott Barber, and Dennis Rea

It's even available on the web for free.
http://msdn.microsoft.com/en-us/library/bb924375.aspx

陌上芳菲 2024-10-17 11:44:09

您可以模拟典型的用户行为,并使用其中一种云服务来模拟网站上的大量用户,以了解您的网站处理大量用户的情况。听说亚马逊的服务不错

You could emulate typical user behaviour and use one of the cloud services to simulate a huge number of users on the website to see how well your website handles with huge numbers of users. I heard Amazon's service is decent

神也荒唐 2024-10-17 11:44:09

我可以推荐两本 2010 年出版的书:

第一本是 "ASP.NET 《SITE PERFORMANCE SECRETS》,作者 Matt Perdeck,于 2010 年秋末出版。它更多地是根据性能编写的优化的角度,而且还有负载测试的详细材料。这是一本免费的 pdf 电子书。

第二本书是“.NET 性能测试和优化 - 完整指南” ,作者:Paul Glavich、Chris Farrell”。这是有关性能/负载测试的相当完整的源代码

I can recommend two books published in 2010:

The first is "ASP.NET SITE PERFORMANCE SECRETS" by Matt Perdeck, was published in late fall 2010. It is written more from performance optimization standpoint, but also has detail material on load testing. It is a free pdf eBook.

The second book is ".NET Performance Testing and Optimization - The Complete Guide", by Paul Glavich, Chris Farrell". It is pretty complete source on performance / load testing

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