为站点创建压力测试
我有一个使用 zend 框架制作的网站(不是很重要,但准确地说)。
我需要一个软件/脚本/任何东西来创建某种压力测试,看看它可以支持多少用户。
我必须模拟用户在页面之间导航,没什么太花哨的。
有人能给我建议吗?
如果我可以创建某种对硬件资源的依赖,那就太好了。
I have a site made using zend framework (not really important but to be precise).
I need a software/script/anything to create some kind of stress test to see how many users it can support.
I must simulate users navigating between pages, nothing too fancy.
Can anyone suggest me something?
Also it would be nice if I could create some kind of dependency on the hardware resources.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您在 apache Web 服务器上运行,请查看 apache bench
If you're running on an apache webserver, take a look at apache bench
其他一些答案将为您提供非常基本的负载测试级别,但一般来说,它们不会实际使用服务器,因为它们不会请求页面上的所有其他资源(图像、CSS 等)。如果这对您来说没问题,那么它们是一个很好的起点。只需知道您只会测试系统的一部分。如果您想更准确地模拟预期流量,那么您需要升级到更复杂的负载测试工具。如果您的软件预算为零,可以选择 JMeter 和 OpenSTA。只需很少的预算,您就可以使用 BrowserMob 或 LoadStorm 的服务进行简单的负载测试。如果您需要更多,则需要寻找更复杂的负载测试工具(例如我们的产品 - Web Performance Load Tester)。
Some of the other answers will get you a very basic level of load testing, but in general they don't exercise the server realistically because they don't request all the other resources (images, css, etc) on the page. If that is ok for you, then they are a good place to start. Just know that you'll only be testing a portion of the system. If you want to more accurately simulate the expected traffic, then you'll need to move up to a more sophisticated load testing tool. If you have zero budget for software, there is JMeter and OpenSTA. With a meager budget, you can use the services from BrowserMob or LoadStorm for simple load tests. If you need more than than, the you'll need to look to the more sophisticated load testing tools (such as our product - Web Performance Load Tester).
使用 apache bench (http://httpd.apache.org/docs/2.0/programs/ab.html) 或 siege -my favourite- (http://freshmeat.net/projects/siege/) 进行测试
Use apache bench (http://httpd.apache.org/docs/2.0/programs/ab.html) or siege -my favourite- (http://freshmeat.net/projects/siege/) for testing