I use Apache + Passenger to host some Rails applications. Something seems to go in a sleep mode when there is no request for a longer time. It then takes 10-20 seconds for the site to load. Feels like there is something that has to wake up when there have been no requests for a longer time.
How can I fix that? I have enough RAM so it should be no problem if whatever goes to sleep just stays awake. 😉
Take a look at the
PassengerPoolIdleTimeparameter for Passenger. It states the maximum number of seconds an application instance can be idle before it shuts down to conserve memory.The default is 300, but you could try to set a higher number and see if that helps.