You nailed it.

That fixed it. Many thanks!

-Sujit

On Nov 8, 3:43 pm, Graham Dumpleton <[email protected]>
wrote:
> That is like because of a high churn on your Apache embedded child
> worker processes. Especially if you are using prefork mode.
>
> Since you are using daemon mode, disable initialisation of Python
> interpreters in Apache embedded child worker processes.
>
> See:
>
> http://blog.dscpl.com.au/2009/11/save-on-memory-with-modwsgi-30.html
>
> for details.
>
> Graham
>
> On 9 November 2011 09:59, SujitC <[email protected]> wrote:
>
>
>
>
>
>
>
> > There were a couple of posts about this before - and maybe someone can
> > help me with this.
>
> > On  Apache2 + mod_wsgi (3.3) + python (2.7)
>
> > As traffic has increased on our site - I can see in the logs that
> > Python process is restarting very often. (4K times a day)
>
> > Logs indicate:
> > [Tue Nov 08 21:20:44 2011] [info] mod_wsgi (pid=9479): Destroying
> > interpreters.
> > [Tue Nov 08 21:20:44 2011] [info] mod_wsgi (pid=9479): Cleanup
> > interpreter ''.
> > [Tue Nov 08 21:20:44 2011] [info] mod_wsgi (pid=9479): Terminating
> > Python.
> > [Tue Nov 08 21:20:44 2011] [info] mod_wsgi (pid=9479): Python has
> > shutdown.
>
> > in apache conf..
>
> >    WSGIProcessGroup idapp
> >    WSGIDaemonProcess idapp processes=2 threads=15 display-name=%
> > {GROUP}
> >    WSGIApplicationGroup %{GLOBAL}
>
> >    WSGIScriptAlias / /company/idsrc/idsrc.wsgi
>
> > In idsrc.wsgi
> > ----------------------
> > import sys
> > sys.stdout = sys.stderr
>
> > activate_this = '/inhaledigital/idsrc/bin/activate_this.py'
> > execfile(activate_this, dict(__file__=activate_this))
>
> > import site
> > ... create app ....
>
> > -------------
>
> > There was a previous post related to HealthCheck/Pings possibly
> > causing this. I see the same results after disabling healthchecks.
>
> > How can I go about debugging this? Any other information I can provide
> > to help the investigation?
>
> > Thanks
> > Sujit
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "modwsgi" 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 
> > athttp://groups.google.com/group/modwsgi?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to