I've been monitoring the logs for my site using 'tail -f production.log', and I've been noticing that about 90% of my page loads take an exceptionally long time. The data on the pages is not very complex, but a typical line in the log is something like:
Completed in 0.19121 (5 reqs/sec) | Rendering: 0.18130 (94%) | DB: 0.00000 (0%) | 200 OK http://****.com]
Many requests take over 1 second and thus render at (0 reqs/sec). I have one page that takes 19 seconds to render, every time. It isn't very complex--it's basically just one DB call and an 'each' loop to print it, with about 100 rows of data. I don't understand what would make that take 19 seconds to render?
My pages seem to load well enough now, but as traffic grows, 5 requests per second isn't going to be enough. Shouldn't my performance be in the hundreds of requests per second? Isn't that typical Rails performance?
Do you know what might be causing my app to perform this slowly?
Thanks for your help.
Edit: This is on my dedicated server account