On Sat, Sep 18, 2010 at 5:58 AM, Walter Lee Davis <[email protected]> wrote:
> I have a Rails 2 app that doesn't get a lot of traffic. It's running under
> Passenger and Apache 2.2, and when it's running, it has great performance,
> page loads are very snappy, etc. But the first hit on the site after the
> server has gone to sleep takes a good while to load, right on the edge of
> "hmmm, server isn't responding...".
>
> Is there something I can do, short of a cron job to request the home page
> every couple of minutes, to keep this spin-down from happening?

I would install NewRelic or equiv to see where the time's being spent.

My guess would be a DB pool connection timeout; re-establishing the
first connection is fairly time-consuming.

HTH!
-- 
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to