服务器测试 PHP 应用程序
我有一个 PHP 应用程序将接受图像上传,我预计大约 2 天内会收到约 20,000 个图像。我不知道我的服务器可以处理多少流量...我将如何预先模拟它以确保它正常工作?我知道 Rails 的系统可以使测试变得容易,但是我可以使用什么工具来模拟这种规模的上传和并发脚本处理?
谢谢!
I have a PHP application that will be accepting image uploads and I'm expecting ~20,000 in about 2 days. I have no concept of how much traffic my server can handle... How would I go about simulating this beforehand to make sure it works ok? I know Rails has systems that make testing easy, but what tools might I use to simulate uploads and concurrent script processing on that scale?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Apache JMeter 是负载测试的最佳工具之一。我确信它可以满足您的需求。
Apache JMeter is one of the best tools for load testing. I'm sure it can handle your needs.
另一个不错的选择是编写一个使用 cUrl 与 php 引擎重复交互的 php 脚本,您可以运行多个实例来查看它的反应。
Another great option is to write a php script that uses cUrl to repeatedly interact with the php engine, you can run multiple instances to see how it reacts.
看看 Siege,它是一个简单的回归测试和基准测试实用程序。
Have a look at Siege, it's a simple regression testing and benchmark utility.
一些相关的帖子,有大量的工具可以做到这一点。最流行的开源负载测试工具是 OpenSTA 和 JMeter。但还有无数其他的。
对网站进行压力测试的最佳方法
用于压力、负载和性能测试的开源工具
Some related posts, there are tons of tools out there to do this. The most popular open source load testing tools are OpenSTA and JMeter. But there are countless others.
Best way to stress test a website
Open source Tool for Stress, Load and Performance testing