有没有办法测试我的网站可以处理多少用户?
我计划最初在 EC2 微型实例上运行我的网站,但我想知道我是否可以测试它可以处理多少用户?
I plan on running my website initially on an EC2 micro instance but am wondering if it's possible for me to test how many users it can handle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的。我使用 httperf 取得了巨大成功。文档有点稀缺,但电子邮件列表反应相当灵敏。
您需要设置 httperf 以用越来越大的流量轰炸您的网站。当您的网络服务器流量开始饱和时,您将开始看到错误代码、超时和缓慢的回复时间。
您需要尝试使用此工具或您决定对站点进行负载测试的任何工具。祝你好运!
Yes. I've had good success using httperf. Documentation is a little scarce but the email list is fairly responsive.
You'll want to set up httperf to bombard your site with larger and larger amounts of traffic. You'll start seeing error codes, timeouts, and slow reply times as you start to saturate your webserver with traffic.
You'll want to experiment with this or any tool you decide for load-testing your site. Good luck!
这称为负载测试。这样做来找出答案。
It's called load testing. Do it to find out.
还有
ab
,Apache HTTP基准。调用示例:
There is also
ab
, the Apache HTTP benchmark.Example call: