Rails Request log analyzer
Posted by Bart ten Brinke Thu, 14 Aug 2008 21:06:12 GMT
You've probably all been there: your application is running slow, but why? What views or actions are clogging up the mongrels? Or are the mongrels just waiting for the database?
Request log analyzer is a simple but very powerful command-line analysis tool to quickly determine what is taking time, on all kinds of different levels. At the moment it can tell you the following statistics:
- Top 10 most requested actions
- Top 10 actions by time - cumulative
- Top 10 actions by time - per request mean
- Top 10 worst DB offenders - cumulative time
- Top 10 worst DB offenders - mean time
- Mongrel process blockers (> 1.0 seconds) - frequency
- Requests graph - requests per hour
For an example run, or the analyzer take a look at the github. http://github.com/wvanbergen/request-log-analyzer/
To install, run:
sudo gem install wvanbergen-request-log-analyzer --source http://gems.github.com

The name of the project (and URL) has changed to request-log-analyzer. You can now find the project on http://github.com/wvanbergen/request-log-analyzer/
The tool is now packaged as a Ruby gem. Installation is simple:
Hi, I have discovered request-log-analyzer when looking for a way to monitor my Rails app. And I have to say I am very happy with it. Thank you very much for providing us with such tool. Best regards,
Hey Bart, Could you please repost the example run link...I'm getting a page doesnt exist error ... thanks.
Sorry, fixed it :)