Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

mod_wsgi processes seems to be lazily started i.e. on request. However, I prefer to start all the processes from the beginning because the process start up time is long. Is there a configuration option for this? or a way around it?

Here is the process configuration in case it was relevant:

WSGIDaemonProcess myapp user=user group=user processes=30 threads=1
WSGIProcessGroup myapp

Note: I'm running multiple processes each with one thread in daemon mode. apache is compiled with MPM worker


share|improve this question
up vote 1 down vote accepted

You might well find that the delay isn't the time taking to spin-up the processes per se. But instead the time it takes for them to load and start delivering your app.

You can use the WSGIImportScript directive to preload processes. Which may in turn negate the delays you're seeing.

share|improve this answer
Thanks you Dan! – Mark Nov 11 '09 at 16:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.