Which actions are slow in my Rails app?

December 7, 2006 Link to post  Permalink

As a follow on to yesterday’s post about watching production logs, here’s something I did today.

1ail -f production.log | grep "Completed in "

This shows me the reqs/sec for each of the URLs the user has requested. Its simple to then watch for those actions that a) get executed frequently and b) take a long time to run.

The key here is that you are watching real world traffic, and seeing how the actions perform under server load.