Hello, I run a number of Django servers and every now and then we get
an error in our logs stating something like:

[Thu Apr 08 17:10:07 2010] [error] [client XXXX] Premature end of
script headers: upro_production.wsgi, referer:
http://coursefinder.uprogps.com/coursefinder/upro/device/XXXX/

These errors are not accompanied by Segmentation faults in the main
error.log and are not associated with us gracefully restarting apache.
All our servers have nginx proxying to apache and all our static
content is served by nginx.

We experience this error across two sites: www.xterra.com and
coursefinder.uprogps.com. Below are some stats:

== Coursefinder ==
http://coursefinder.uprogps.com/
Django 1.0.4
500 max requests
3 processes
20 threads

=== Past 4 Days ===
289 Premature end of script headers errors. Many not related to
downloading a course
~ 72 Errors a day
7249041 Requests
1 Error for every 25083 Requests

== Xterra ==
http://www.xterrawetsuits.com/
Django 1.1.1
500 max requests
2 processes
10 threads

=== Past 4 days ===
22 Premature end of script headers
~  5 errors a day
810000 Requests
1 Error for every 36818 Requests


== Dcshoes ==
http://www.dcshoes.com/
Django 1.0.2
5 Sites Each configured with:
    500 max requests
    4 Processes
    1 Thread
No errors

=== Past 4 days ===
473559 Requests


Because dcshoes.com doesn't experience this problem and only has 1
thread per process, I am beginning to think that this is a threading
issue. Supposedly Django 1.0.3 and later is thread safe.

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