← Back to the blog

Getting RPM working with Rails 3.0

Note:  This has only been tested to work with Heroku, my hosting service of choice.  It's not been tested anywhere else.  Regardless, you should still test everything yourself.

RPM is a fantastic tool for seeing how your Rails application performs in production, and to be honest, having run some production apps without it, you are completely blind if it's not set up.

However, the arrival of Rails 3.0 has brought some far reaching changes to the way the framework works, rendering the RPM gem useless with Rails 3.0.  However, NewRelic have a newly released version (2.13.0.beta5) which works with Rails 3, and I have running in a couple of production environments.

So how do you get it up and running?

Well Rails 3 means bundler, so first step is to include the following in your Gemfile:

1 
gem 'newrelic_rpm', '2.13.0.beta5', :require => false

One this is done, create config/initializers/newrelic.rb and simply include:

1 
require 'newrelic_rpm'

Deploy the code when you're ready, and then flip on the New Relic add-on at Heroku.  Hopefully, your apps still running, but now with added RPM goodness.

Posted via email from :neil_middleton

Posted by Neil Middleton on 20 Jul 2010

blog comments powered by Disqus

From our portfolio

Jo's Trust
Website
JoTrust-Thumbnail
Charis Grants
Application
charis_thumbnail
iMoneymanager
Application
imoneymanager_small
www.flickr.com

Archives

From our blog

We’re looking for Ruby on Rails (RoR) developers to join our team!

Posted by Niklas Richardson on 12 Apr 2012

Monochrome are looking for a couple of enthusiastic Ruby on Rails developers to join the team – Both Lead and Junior/graduate roles. You don’t need to have years of Ruby on Rails...

The need for applications just keeps on growing

Posted by Adrian Munn on 24 May 2011

After 12 years in the industry experience has always told us to adapt and modify strategies in your business in order to survive and thrive. Monochrome are not adverse to taking on new challenges...

Places we would like to go...

Posted by Neil Middleton on 21 Jan 2011

Quite often in the office we will end up having a conversation about some particular company, that does something on a massive scale, and has a relevance to either technology or some sort of large...