Home arrow Ruby-on-Rails arrow Using Rails Analyzer for Performance Optimization

Using Rails Analyzer for Performance Optimization

In this second part of a six-part article series on optimizing the performance of a Ruby-on-Rails application, you will learn how to use the Rails Analyzer tool set. This article is excerpted from chapter 13 of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).

Author Info:
By: Apress Publishing
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
December 07, 2010
  1. · Using Rails Analyzer for Performance Optimization
  2. · Using the Production Log Analyzer

print this article

Using Rails Analyzer for Performance Optimization
(Page 1 of 2 )

Using Rails Analyzer

The Robot Co-op, the creators of the popular 43things.com, 43places.com, and 43people.com, has released an impressive set of tools for analyzing the performance of a Rails application. The tool set is called Rails Analyzer and can be found at http://rails-analyzer.rubyforge.org/.

Rails Analyzer consists of four independent parts:

  1. The Production Log Analyzer can be used to analyze Rails log files. It produces a report that tells which actions are the most popular and which take the most time to render. It is an invaluable tool for measuring the performance of those actions that are used most often in the production setting.
  2. The Action Profiler is used to profile individual actions. Run it as the next step after using the Production Log Analyzer to find the slow actions. With the Action Profiler, you can drill down to the action and see where it is taking its time. 
  3. Rails Analyzer Tools is a collection of tools for monitoring and benchmarking a Rails
    application. The tools included arebenchfor benchmarking a particular page,crawlerfor crawling a page and requesting all the local linked files on that page, andrails_statfor pinging the load status of a live production Rails application. 
  4. SQL Dependency Grapher can be used to visualize the frequency of table dependencies in a Rails application. (We wonít cover this part of the tool set in this chapter.)

Letís see how Rails Analyzer can help us. First, log on to the production server and install the needed gems:

$ sudo gem install rails_analyzer_tools production_log_analyzer action_profiler

Now we can get started by setting up for the Production Log Analyzer and then running it.

blog comments powered by Disqus

- Ruby-on-Rails Faces Second Security Flaw in ...
- Ruby 2.0 Prepped for February 2013 Release
- Why LinkedIn Switched from Ruby on Rails
- Adding Style with Action Pack
- Handling HTML in Templates with Action Pack
- Filters, Controllers and Helpers in Action P...
- Action Pack and Controller Filters
- Action Pack Categories and Events
- Logging Out, Events and Templates with Actio...
- Action Pack Sessions and Architecture
- More on Action Pack Partial Templates
- Action Pack Partial Templates
- Displaying Error Messages with the Action Pa...
- Action Pack Request Parameters
- Creating an Action Pack Registration Form

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials