[Answered ]-Why is mod_python running entire django stack from beginning with each request?

2👍

Apache on UNIX systems is a multiprocess system as pointed out by someone else. Also make sure the MaxRequestsPerChild hasn’t been set to be 1 in Apache configuration for some reason. Ideally that directive should be set to 0, meaning keep processes around and not recycle them based on number of requests.

0👍

It loads Django once per httpd process. Since multiple processes start (each child being a process), multiple instances of Django are started.

Leave a comment