如何为网站设置负载/压力测试? [英] How to set up a load/stress test for a web site?

查看:166
本文介绍了如何为网站设置负载/压力测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务是突然对公司网站进行压力/负载测试,却一无所知.我在Google上进行的如何对网站进行负载测试"的每次搜索都会带回各种公司和软件来进行负载测试.

I've been tasked with stress/load testing our company web site out of the blue and know nothing about doing so. Every search I make on google for "how to load test a web site" just comes back with various companies and software to physically do the load testing.

现在,我对如何真正进行负载测试感兴趣,例如在进行负载测试之前应考虑的因素,应该对站点中的哪些页面进行负载测试以及我正在从事的工作要在测试时进行监控.我们的网站位于多层系统上,并带有单独的数据库服务器(IIS 7 Web服务器,SQL Server 2000数据库).我想我想同时监视Web服务器和数据库服务器以测试负载,但是在设置场景以对Web服务器进行负载测试时,我不得不使用查询数据库的页面来查看位于以下位置的数据库服务器上的任何负载:在同一时间.

For now I'm more interested in how to actually go about setting up a load test like what I should take into account prior to load testing, what pages within my site I should be testing load against and what things I'm going to want to monitor when doing the test. Our web site is on a multi-tier system complete with a separate database server (IIS 7 Web Server, SQL Server 2000 db). I imagine I'd want to monitor both the web server and the database server for testing load however when setting up scenarios to load test the web server I'd have to use pages that query the database to see any load on the database server at the same time.

Web服务器和数据库服务器是否通常同时进行测试,或者它们是作为单独的测试进行的?

Are web servers and database servers generally tested simultaneously or are they done as separate tests?

如您所见,我对整个操作一无所知,因此任何煽动性的举止都会很有帮助.

As you can see I'm pretty clueless as to the whole operation so any incite as to how to go about this would be very helpful.

仅供参考,我一直在修补Pylot,并能够在我们的网站上创建和运行一个方案,但是我不确定我应该在结果中寻找什么,或者不确定我创建的方案是否值得评估我们的网站.

FYI I have been tinkering with Pylot and was able to create and run a scenario against our site but I'm not sure what I should be looking for in the results or if the scenario I created is even a scenario worth measuring for our site.

谢谢.

推荐答案

查看 JMeter .我发现入门有些棘手,但是一旦您完成测试设置,就可以轻松运行.他们在此处中提供了有关如何设置分布式测试的教程.

Check out JMeter. I found it a little tricky to get started with but once you have your tests setup it's easy to run. They have a tutorial on how to setup distributed testing here.

这篇关于如何为网站设置负载/压力测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆