We're actually planning on making the ApplicationSpawner server
timeout configurable. The ApplicationSpawner server can reduce startup
time by 90%, plus it only uses as much memory as a single application
instance. So that should solve your problem as well, and would be a
lot easier to implement.
Currently the timeout is defined in a constant,
APP_SPAWNER_MAX_IDLE_TIME, in lib/passenger/framework_spawner.rb.
Could you try increasing this timeout (to, say, 999999; don't forget
to restart Apache) and check whether this solves your problem
adequately?
Regards,
Hongli Lai
--
Phusion | The Computer Science Company
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
I think someone else suggested something along the same lines - but to
make the min pool size configurable on a per virtual host basis. That
way you could always have at least one process for _each_ vhost waiting
for a request.
Of course, it's easy for us to suggest this and a little bit harder to
actually implement it :-)
Yours,
Tom