Why would Django fcgi just die? How can I find out?

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2010-04-08T13:32:25Z Indexed on 2010/04/08 13:43 UTC
Read the original article Hit count: 144

Filed under:
|
|
|
|

I'm running Django on Linux using fcgi and Lighttpd. Every now and again (about once a day) the server just dies. I'm using the latest stable release of Django, Python and Lighttpd.

The only thing I can think of is that my program is opening a lot of files and executing a lot of external processes, but I'm fairly sure that side of things is watertight.

Looking at the error and access logs, there's nothing exceptional happening (i.e. load isn't above normal). On those occasions where I have had exceptions from Python, these have shown up in the error.log, but when this crash happens I get nothing.

Is there any way of finding out why the process died? Short of putting logging statements on every single line? Obviously I can't reproduce this so I don't know exactly where to look.

© Stack Overflow or respective owner

Related posts about python

Related posts about django