2008/9/29 Pigletto <[EMAIL PROTECTED]>:
>> Does your Django application create any background threads to perform
>> processing.
> Yes. I'm using external threads to send e-mail messages.
> Hm... I'll try to perform some actions that will cause e-mails to be
> sent
> and then I'll see whether process crashes after reaching maximum-
> requests.

Distinct threads can be an issue on shutdown because if they are doing
a lot of stuff in C code, they might still be running and attempting
to do stuff when the Python interpreter instance is being destroyed.
That though you are seeing problems on startup though means it would
have to be something different.

All I can suggest at this point are:

1. Disable the background email thread and see if the problem still occurs.

2. Force application to run in main interpreter by setting:

  WSGIApplicationGroup %{GLOBAL}

This will eliminate possibility that problems are caused by a third
party C extension module which isn't implemented correctly so as to
work in secondary sub interpreters.

3. Try and attach gdb, if available, to running daemon process and see
if you can catch traceback for what causes process to crash. See:

  
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_Crashes_With_GDB

Graham

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

Reply via email to