On Jan 27, 2010, at 3:07 PM, Graham Dumpleton wrote:

Should restart on a crash automatically.

One cause of what you are seeing is Python threads being deadlocked
and over time causing available threads to be used up.

Are you using multithread daemons? Is your code and third party
modules thread safe?


nope, single-threaded! threads=1 on the WSGIDaemonProcess line.

Try setting 'inactivity-timeout=120' as option to WSGIDaemonProcess.


great, that seems like a good idea anyway.

I would also suggest setting LogLevel to 'info' so that additional
information printed out in error logs about process restarts.

That was going to be my next question ...:)


This way you might get an idea what request threads are actually doing.

So none of this explains the "missing daemons" problem - where the daemons are not actually starting back up again... as you can see below, I set the display-name so that I can look at the daemons with "ps" - when I do a ps ax | grep <group> I only see a few processes (in fact one of my servers in production has dropped from the original 24 process, down to 7 yesterday, and now only at 3 today!)

Let me know what you find and also post your actual daemon mode configuration.


Here's one of them:

#############################
# Project: client
##############################

WSGIDaemonProcess client-freebase.com processes=24 threads=1 display- name=%{GROU P} python-path=/mw/app/client_88277/_install/lib/python2.6/site- packages maximum
-requests=1000

WSGIScriptAlias / /mw/app/client_88277/_install/bin/client.wsgi

# Server configuration for client
<Directory /mw/app/client_88277/_install/bin>
WSGIProcessGroup client-freebase.com
</Directory>



Graham

--
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 .


--
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