Rails 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?

Rails 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/rails-log-analyzer/

Posted in ,  | Tags , , ,  | 3 comments