Every couple of minutes, I end up with a worker that gets stuck busy.
strace shows that this worker is blocked by:

futex(0x4dc7d08, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>

Harakiri will ultimately kill the worker after 300 seconds as configured in
the ini file.

Any thoughts on how I can go about tracking down the cause of this issue?


Configuration info follows...

This happens on multiple AWS instances, all configured the same way:

Linux hostname 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux

I am running the 2.0.9 version of uwsgi (installed via pip).

My ini file is:

[uwsgi]
chdir = /opt/site/project/
master = true
wsgi-file = /opt/site/project/app/wsgi.py
processes = 10
stats = 127.0.0.1:9191
socket = 127.0.0.1:3031
uid = www-data
gid = www-data
vacuum = True
enable-threads = false
env = DJANGO_SETTINGS_MODULE=app.settings
env = ENVIRONMENT=project
home = /opt/site/project/
virtualenv = /opt/site/project/.venv/
daemonize = /var/log/uwsgi.log
single-interpreter = true
maxrequests = 200
reload-on-as = 256
idle = 300
harakiri = 300

I am using python 2.7, Django 1.6, with the following packages:

django-extensions==1.3.11
Django==1.6.1
wsgiref==0.1.2
coverage==3.7.1
flake8==2.1.0
psycopg2==2.5.2
South==0.8.2
django-debug-toolbar==1.0.1
hashids==0.8.3
radon==0.4.4
pytz==2013b
djangorestframework==2.3.12
django-filter==0.7
django-autocomplete-light==2.0.0a15
django-countries==2.0
python-dateutil==2.2
numpy==1.8
Pillow==2.3.1
html5lib==0.999
httplib2==0.9
pyPdf2==1.23
reportlab==2.7
xhtml2pdf==0.0.6
boto==2.29.1
django-storages==1.1.8
django-adminactions==0.6
django-import-export==0.2.6
pycrypto==2.6.1

thanks.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to