On 31 May 2011, at 13:19, Yiannis wrote:
Currently ruby enterprise edition is in 1.8.7 and I prefer to use
1.9.2. My problem with the passenger is with the slow initial server
response time. I have tried many things (including all the
recommendations from here
http://stackoverflow.com/questions/853532/slow-initial-server-startup-when-using-phusion-passenger-and-rails)
,
but I didn't see any significant difference.
That is basically the main issue with the passenger which I don't know
how to fix it and made me thinking of other solutions. If I use nginx
instead of apache, will this help with the problem?
No, the initial slow request is because no app instance has spawned
yet. So, when you restart your Rails app, Passenger kills off all
instances and the Spawner just waits until a request comes in. Only
then will it boot up your Rails app and start using memory.
However, some time ago Passenger introduced a new setting called
passenger_min_instances, which will keep at least the number of
instances you specify running. That should eliminate the slow startup
speed at the expense of guaranteed memory use even when an instance is
idle and not needed anymore.
Best regards
Peter De Berdt
--
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.