ruby on rails - Why would I see ActionDispatch::Routing::RouteSet#call slowness? -


looking @ new relic data heroku app, there's 1 transaction that's puzzling me. it's 1 actiondispatch::routing::routeset#call appears in trace. takes 30% of time on frequent action, i'd speed up, or @ least understand does.

https://www.dropbox.com/s/kvs5ez7stxpul1n/screenshot%202015-07-16%2011.00.17.png?dl=0

also weird every , then, takes long time:

https://www.dropbox.com/s/636lrmny3mu20o4/screenshot%202015-07-16%2011.03.57.png?dl=0

i've asked myself, "what different particular request?" controller action pretty normal -- , fact slow-down in middleware makes me think controller code isn't relevant. (can confirm that?) thing can think of particular action uses non-integer resource ids: e.g /action_name/some-id-with-dashes. it's action in app this. possible can cause? actiondispatch::routing::routeset#call anyway? there theories can give me point me in fruitful direction?

i'll sum in single question: what different single rails action such 1 see slowness actiondispatch::routing::routeset#call in trace?

prior research

i found other (unanswered) questions on topic. decided open separate question because of details differed in case. listing them here:

1) similar, actiondispatch::routing::routeset#call listed in new relic transaction, whereas me segment within transaction:

actiondispatch::routing::routeset#call rails 4.1 slow

2) similar, involves rails 4 , slowdown experiencing way larger mine , seems "memory related", whereas app's memory use seems fine:

slow action in rails application: actiondispatch::routing::routeset#call

3) similar, don't know "grape" (and i'm not using it):

why actiondispatch::routing::routeset takes long

4) might same issue, there aren't lot of details, actiondispatch::routing::routeset#call slow:

actiondispatch::routing::routeset intermittently takes long route requests

for me, turns out newrelic ruby agent does't work rocket_pants, gem use build api endpoints.

there third party gem 'rocket_pants-rpm' solve issue, original 1 stop working newrelic_rpm version 3.9+, fix issue, try using forked version @ https://github.com/spartasales/rocket_pants-rpm

this how newrelic report looks me after adding gem.

enter image description here


Comments