我正在使用瘦身作为服务器运行rails 4.2.2 app。 在生产模式下,日志显示渲染时间非常精细:
> I, [2015-10-19T20:55:50.234241 #44391] INFO -- :
Rendered partials/_full_map.html.erb (0.0ms)
I, [2015-10-19T20:55:50.234548 #44391] INFO -- :
Rendered partials/_date_picker.html.erb (0.1ms)
I, [2015-10-19T20:55:50.234983 #44391] INFO -- :
Rendered partials/_resorts_filter.erb (0.6ms)
I, [2015-10-19T20:55:50.240087 #44391] INFO -- :
Read fragment views/there/3c482c445a6cf61ee40c95ee5d1d0147 (4.9ms)
I, [2015-10-19T20:55:50.247775 #44391] INFO -- :
Rendered partials/_date_modal.html.erb (0.0ms)
I, [2015-10-19T20:55:50.247865 #44391] INFO -- :
Rendered resorts/index.html.erb within layouts/application (14.6ms)
I, [2015-10-19T20:55:50.249438 #44391] INFO -- :
Rendered partials/_header.erb (0.2ms)
I, [2015-10-19T20:55:50.250012 #44391] INFO -- :
Completed 200 OK in 133ms (Views: 16.9ms | ActiveRecord: 14.6ms | Solr: 0.0ms)
但是chrome网络标签告诉我一些完全不同的东西,这也是一种非常慢的感觉
?lastSnow=0 GET 200 document Other 135 KB 638 ms
如何产生如此巨大的差异,如何识别瓶颈? 感谢帮助。