Best way to stress test a rails web app? [closed]

风格不统一 提交于 2019-12-03 03:41:58

问题


Are there any good (preferably free) tools out there?

Can they give accurate estimates that reflect production results when the app goes live?


回答1:


This is definitely not a free solution, but webmetrics will get the job done. (As well as any website monitoring company in general). They give thorough reports on your web site's performance, and when you schedule load tests you can specify how much load you want to simulate (e.g. simulate 2000 users using my site at once).

I don't think it will break it down and tell you your CPU usage and such, as they stress your website from their servers.




回答2:


I would personally go with Apache Bench http://httpd.apache.org/docs/2.0/programs/ab.html

It's free, straight forward to use and lightweight.

If you are looking for a something a little more robust then I think Apache JMeter might be worth looking at. http://jmeter.apache.org/. Again, it's free, a bit of a learning curve and has a GUI so a little heavier.

You might also want to take a look at this Q/A Performing a Stress Test on Web Application?




回答3:


WebLoad is open source:

http://www.webload.org/




回答4:


There's a good summary of tools here.




回答5:


Rails comes with performance testing built in: http://guides.rubyonrails.org/performance_testing.html




回答6:


You can try Trample, it is load simulation tool here




回答7:


If you want to visualize performance instead of just look at the numbers you might try Engulf. It's Open Source Software, distributed, and high-performance. http://engulf-project.org/#usage Disclaimer: It's a project I work on.



来源:https://stackoverflow.com/questions/311925/best-way-to-stress-test-a-rails-web-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!