Rails 3 and NewRelic - No detailed tracing information

2010-09-01 Thread JDeville
I have a controller that's slow every now and then, but can't figure
out why. I've gone all the way up to gold with NewRelic, and the
tracing doesn't go any further than the controller action, which
doesn't really help me identify where my problem is.  Is NewRelic not
working properly with rails 3 yet?

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Rails 3 and NewRelic - No detailed tracing information

2010-09-01 Thread JDeville
Sorry, one more bit of info, I'm using mongoid, so I'm not expecting
active record information, but I do expect to be able to dig in to the
mongoid code if that is where the slowness is occurring.

On Sep 1, 9:48 am, JDeville jeffdevi...@gmail.com wrote:
 I have a controller that's slow every now and then, but can't figure
 out why. I've gone all the way up to gold with NewRelic, and the
 tracing doesn't go any further than the controller action, which
 doesn't really help me identify where my problem is.  Is NewRelic not
 working properly with rails 3 yet?

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Rails 3 and NewRelic - No detailed tracing information

2010-09-01 Thread JDeville
Here's what I have
http://yfrog.com/f/m9a0gj/

I see that you have memcached and active record in your graph.  I
don't use memcached, and am using mongoid instead of active record, so
if you pull all that out of your graph, I suppose it is the same.

One question is whether or not RPM can tell when my code is what is
churning vs when I am waiting for a response from mongodb.  7 seconds
to do this:

Controller ---
  def index
page_size = params[:page_size].nil? ? 40 : 
params[:page_size].to_i
respond_with(@ideas_to_rate = GiftIdea.unrated_by(get_user_id,
page_size).to_a)
  end

GiftIdea --
scope :decent, :where = {:sales_rank.lt = 1200}
scope :unrated_by, lambda {|user_id, limit|
ids_to_exclude = Rating.only(:rateable_id).where(:user_id =
user_id).
collect{|r| r.rateable_id}
total_idea_pool = GiftIdea.total_ideas - ids_to_exclude.size - 
limit
skip = total_idea_pool  0 ? rand(total_idea_pool) : 0
Rails.logger.info(TotalIdeas: #{total_idea_pool} Skip: #{skip}
Limit: #{limit} IdeasToExclude: #{ids_to_exclude.join(',')})
decent.not_in(:_id = ids_to_exclude).skip(skip).limit(limit)
}

seems absurd.  :-)



On Sep 1, 9:56 am, Neil Middleton neil.middle...@gmail.com wrote:
 Here's a snapshot of a production Rails 3 running NewRelic Bronze (on
 Heroku).

 Are you seeing the same level of detail?

 http://i54.tinypic.com/e04do0.png

 N





 On Wed, Sep 1, 2010 at 2:51 PM, JDeville jeffdevi...@gmail.com wrote:
  Sorry, one more bit of info, I'm using mongoid, so I'm not expecting
  active record information, but I do expect to be able to dig in to the
  mongoid code if that is where the slowness is occurring.

  On Sep 1, 9:48 am, JDeville jeffdevi...@gmail.com wrote:
   I have a controller that's slow every now and then, but can't figure
   out why. I've gone all the way up to gold with NewRelic, and the
   tracing doesn't go any further than the controller action, which
   doesn't really help me identify where my problem is.  Is NewRelic not
   working properly with rails 3 yet?

  --
  You received this message because you are subscribed to the Google Groups
  Heroku group.
  To post to this group, send email to her...@googlegroups.com.
  To unsubscribe from this group, send email to
  heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/heroku?hl=en.

 --
 Neil Middleton

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Rails 3 and NewRelic

2010-05-18 Thread Neil
Just heard back on a support ticket - apparently the issue lies with
NewRelic who are looking into it - I'll keep you posted with any more
juicy info that may pop up

N

On May 17, 7:25 pm, john muhl johnm...@gmail.com wrote:
 it's been working here for a week or so with a beta3 app on bamboo
 1.9.1. i didn't do anything special to get it working but maybe the
 stats i'm getting from it are all worthless...not a terribly important
 application so i guess worthless stats are ok for now as long as it's
 not actively breaking things.





 On Mon, May 17, 2010 at 12:23 PM, Oren Teich o...@heroku.com wrote:
  I don't think new relic supports rails 3 yet.

  On Mon, May 17, 2010 at 9:21 AM, Neil neil.middle...@gmail.com wrote:
  I'm hitting a brick wall on this, but does anyone else have issues
  with Rails 3 andNewRelicon Heroku?  Even when I create a vanilla
  Rails 3 app, addingNewReliccrashes the application, yet on Rails 2
  it works perfectly.

  Anyone?

  --
  You received this message because you are subscribed to the Google Groups 
  Heroku group.
  To post to this group, send email to her...@googlegroups.com.
  To unsubscribe from this group, send email to 
  heroku+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/heroku?hl=en.

  --
  You received this message because you are subscribed to the Google Groups 
  Heroku group.
  To post to this group, send email to her...@googlegroups.com.
  To unsubscribe from this group, send email to 
  heroku+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/heroku?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Rails 3 and NewRelic

2010-05-17 Thread john muhl
it's been working here for a week or so with a beta3 app on bamboo
1.9.1. i didn't do anything special to get it working but maybe the
stats i'm getting from it are all worthless...not a terribly important
application so i guess worthless stats are ok for now as long as it's
not actively breaking things.

On Mon, May 17, 2010 at 12:23 PM, Oren Teich o...@heroku.com wrote:
 I don't think new relic supports rails 3 yet.


 On Mon, May 17, 2010 at 9:21 AM, Neil neil.middle...@gmail.com wrote:
 I'm hitting a brick wall on this, but does anyone else have issues
 with Rails 3 and NewRelic on Heroku?  Even when I create a vanilla
 Rails 3 app, adding NewRelic crashes the application, yet on Rails 2
 it works perfectly.

 Anyone?

 --
 You received this message because you are subscribed to the Google Groups 
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/heroku?hl=en.



 --
 You received this message because you are subscribed to the Google Groups 
 Heroku group.
 To post to this group, send email to her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/heroku?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.