Walter Lee Davis 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?
Thanks,
Walter
Take a look at the passenger documentation. After a configurable idle
period the rails process is terminated and must be reloaded. The length
of the idle period can be set to whatever works for you. There are some
other things that can be similarly changed that will impact this.
Norm
--
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.