Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…


Cannot retrieve contributors at this time

file 32 lines (23 sloc) 1.105 kb
layout title categories
newrelic-rake released

4 months ago, I released newrelic-workling gem, which helps us montior the performance of background jobs. We used it to find out a GC performance issue. But we still have some cron jobs, who call rake tasks, running in the black box.

So I created a new project newrelic-rake that adds newrelic instrument for rake tasks. Now when I go to the newrelic, I can see the rake tasks listed in Background tasks section, it shows me the average execution time and call count for all rake tasks.

newrelic rake tasks

I can also see the performance breakdown for each rake task.

newrelic rake instrument

This rake task probably needs to use persistence net http or some c extension http client, and reduce the GC calls.

It's really important to do monitor first, then do optimize.

Something went wrong with that request. Please try again.