网络流量模拟测试
我已经启动并运行了一个 PHP 站点,数据库是 mysql。在启动该网站之前,我想测试流量处理。现在我假设有一些软件可以模拟流量并记录我的站点上运行的进程。有什么我应该使用的软件推荐吗?流量不一定是真实的,但尽管如此,我还是想产生高流量来调查网站的阈值。 感谢您的帮助
I've got a PHP site up and running, and the db is mysql. before launching the site, I would like to test the traffic handling. Now am assuming that there are soe softwares that would simulate the traffic and log the processes running on my site. Any recommendation of software I should use? the traffic doesn't have to be real, but nonetheless, I would like to generate a high traffic to investigate the threshold of the site.
Appreciate the help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用加特林https://github.com/excilys/gadling。
它是一个用 Scala 编写的压力工具,旨在比 Jmeter 更高效、更轻量。
基本上,您在网站上记录一个场景,然后并行运行它“n”次。
这是更多信息的 wiki https://github.com/excilys/gadling/wiki/Basic-Usage
You can use Gatling https://github.com/excilys/gatling.
It's a stress tool written in Scala which aims at being more efficient and lighter than Jmeter.
Basically you record a scenario on your website and then run it 'n' times in parallel.
Here is the wiki for more infos https://github.com/excilys/gatling/wiki/Basic-Usage
您可以使用 Jmeter:
它是免费的。
很容易从其网站和互联网上的大量文档开始
它具有代理功能,可以从浏览器轻松创建测试计划导航
可以轻松地在其他计算机上启动进程。它远程测试,可以从GUI或控制台完成。
脚本可以用 beanshell、java 或任何 jsr223 语言(groovy、Javascript、scala、jexl ...)编写
它有很多内置采样器,并且由于其插件架构,添加新采样器或使用任何脚本引擎非常容易做缺少的事情
它有很棒的用户邮件列表
它有非常反应性的支持
它现在是顶级 Apache
它可以运行数千个
存在从云运行它的专业解决方案
...
请参阅:
对 Web 应用程序执行压力测试?
对网站进行压力测试的最佳方法
如何测试网站的性能?
You can use Jmeter:
It's free.
it's easy to Start with lot of documentation on its Website and on internet
it has a proxy feature to easily create test plan from browser navigation
It is easy to start up processes on other machines. It remote testing, can be done from GUI or console.
The scripts can be written in beanshell, java, or any jsr223 language ( groovy, Javascript, scala, jexl ...)
it has a lot of built- in samplers and thanks to its plugin architecture it's very Easy to add new ones or use any scripting engine to do what's missing
it has great user mailing list
it has very reactive support
it's now a top Level Apache
it can run thousands of users
professional solutions exist to run it from cloud
...
See:
Performing a Stress Test on Web Application?
Best way to stress test a website
How do you test the performance of a website?