测试网站过载
我有一个使用 SQL Server 的 Asp.net 网站。我想做一个网站过载测试,例如 http://loadimpact.com/ 如何自己执行此测试并查看我的网站性能?
我想查看最大用户数、即时流量、错误页面等。
I have an Asp.net website using SQL Server. I want to make a website overload test like http://loadimpact.com/ How can perform this test by myself and see my website performance?
I want to see max users, instant traffic, error pages etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要使用一个能够在您的网站上产生负载的工具。
这里是开放的列表源性能测试工具 - 我相信至少有一个能满足您的需求。
您确实需要记住,这可能会占用大量带宽,并且您必须确保您的站点和生成负载的计算机有足够的带宽。
You need to use a tool that will generate load on your website.
Here is a list of open source performance testing tools - I am sure at least one will fit your needs.
You do need to remember that this can take a lot of bandwidth and you have to ensure that your site and the machine/s generating the load have enough of it.
如果您想测试一下您的 Web 应用程序可以处理多少内容,我会查看 Apache JMeter。特别是查看用户手册。正如 Oded 提到的,您必须确保运行应用程序的计算机和运行 JMeter 的计算机之间有足够的带宽。
在许多情况下,在同一机架中放置一个并置的盒子将为您提供几乎无限的测试带宽。有时,您甚至可以在应用程序所在的同一台计算机上运行 JMeter,或者在同一物理硬件上的虚拟机上运行 JMeter。缺点是 JMeter 确实使用了一些资源,因此您无法确切知道您的应用程序可以处理多少资源,但它应该可以让您很好地了解在遇到麻烦之前预计有多少用户。
I would look at Apache JMeter if you want to test to see how much your web application can handle. In particular checkout the user manual. As Oded mentioned, you'll have to make sure you have enough bandwidth between the machine that is running the app and the machine that is running JMeter.
In many cases, getting a co-located box in the same rack will give you virtually unlimited bandwidth for testing. Sometimes you can even run JMeter on the same machine as your application or on a virtual machine on the same physical hardware. The downside is that JMeter does use some resources, so you won't know exactly how much your app can handle, but it should give you a pretty good idea of how many users to expect before running into trouble.
您可以使用 Visual Studio 2010 Ultimate 和 Visual Studio Test Professional 2010 进行性能/压力测试,其中包括一个名为 Microsoft 测试管理器 可帮助您使用测试计划定义和管理测试工作。
一个好的开始是创建一个 LoadTestPlugin 在负载测试的各个点执行您想要的操作。
You can do performance/stress testing with Visual Studio 2010 Ultimate and Visual Studio Test Professional 2010 which include a new application called Microsoft Test Manager to help you define and manage your testing effort by using test plans.
A good start would be by creating a LoadTestPlugin to do what you want at various points in the load test.