performance - Understanding Rails runtime metrics -
i'm trying diagnose performance issue in rails 4 , can't figure out what's going on. here's timing i'm seeing on server:
completed 200 ok in 2816ms (views: 644.1ms | activerecord: 162.0ms | solr: 0.0ms)
i'm (mostly) satisfied views time, , activerecord time, don't understand why completed time (2816ms) large.
what time represent? , there way decrease time?
what you're showing on 2/3 of request processing time isn't included in model/view. what's left? other code running within controller , request processing life-cycle.
the best way profile install newrelic rpm gem , run local profiler:
add gem gemfile:
gem 'newrelic_rpm'
enable local profiling in development config/newrelic.yml:
development: <<: *default_settings monitor_mode: false developer_mode: true
execute request 2-3 times warm rails app , visit local newrelic app view traces , track down what's happening:
http://localhost:3000/newrelic
Comments
Post a Comment