Recently, my Rails project became oddly slow when running in
development mode locally. Example:
Processing SessionsController#new (for 127.0.0.1 at 2011-01-24
Completed in 320ms (View: 27, DB: 6) | 200 OK [http://localhost/login]
320ms is pretty slow, but the issue is, that somewhere on top of this,
there is a 500ms overhead on doing… stuff. Check this:
time curl http://localhost:3000/login > /dev/null
I’m running NewRelic as well, but any statistics in there only
accounts for the first 320ms.
How do I find out what is eating up the additional 500ms? It’s driving
me absolutely nuts, because it didn’t always do this. I’m wondering if
it’s the amount of gems we use (currently around 30 or so).
- ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
- Rails 2.3.5
Thanks in advance for any help or hints.