Sounds like you are using embedded mode rather than daemon mode. In embedded mode Apache will recycle processes.
How do you have it configured? Are you using WSGIDaemonProcess/WSGIProcessGroup directives at all? Graham > On 19 Apr 2016, at 6:12 PM, Julien Delafontaine <[email protected]> wrote: > > Hello, > > I have a multi-processes mod_wsgi application that stores some cache data in > memory. Each process naturally gets its own instance of that cache. Now it > seems that processes after some time get killed/restarted/whatever, so that > the cache has to be reinitialized everytime this happens. How can I control > it ? > > Ideally I'd like to start 2 Apache/mod_wsgi processes, initialize the cache > on each, and let the app run forever without needing to recompute the cache. > Is that possible? > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
