uWSGI hanging

234 views
Skip to first unread message

shitiz bansal

unread,
Apr 6, 2015, 4:47:03 AM4/6/15
to django...@googlegroups.com
Hi,
I have nginx+uwsgi+django configured on my linux servers.


Sometimes when I restart/start my servers the processes get stuck. It comes back after a few restarts.

My uwsgi log shows-

uwsgi socket 0 bound to UNIX address /tmp/uwsgi_watchman.sock fd 3
Python version: 2.7.5 (default, Mar 28 2014, 00:06:17)  [GCC 4.8.2 20131212 (Red Hat 4.8.2-7)]
Set PythonHome to /usr/lib/pyve/
Python main interpreter initialized at 0xb46210
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 5 seconds
mapped 2384624 bytes (2328 KB) for 150 cores
*** Operational MODE: preforking+threaded ***
added /watchman/watchman/deploy/ to pythonpath.
WSGI app 0 (mountpoint='') ready in 6 seconds on interpreter 0xb46210 pid: 6787 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 6787)
spawned uWSGI worker 1 (pid: 6789, cores: 15)
spawned uWSGI worker 2 (pid: 6790, cores: 15)
spawned uWSGI worker 3 (pid: 6792, cores: 15)
spawned uWSGI worker 4 (pid: 6801, cores: 15)
spawned uWSGI worker 5 (pid: 6814, cores: 15)
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 1 available on /tmp/tbsocket1
spawned uWSGI worker 6 (pid: 6824, cores: 15)
spawned uWSGI worker 7 (pid: 6825, cores: 15)
spawned uWSGI worker 8 (pid: 6841, cores: 15)
spawned uWSGI worker 9 (pid: 6872, cores: 15)
spawned uWSGI worker 10 (pid: 6873, cores: 15)
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 6 available on /tmp/tbsocket6
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 2 available on /tmp/tbsocket2
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 7 available on /tmp/tbsocket7
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 8 available on /tmp/tbsocket8
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 4 available on /tmp/tbsocket4
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 5 available on /tmp/tbsocket5
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 9 available on /tmp/tbsocket9
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 10 available on /tmp/tbsocket10
chmod() socket to 666 for lazy and brave users
python tracebacker for worker 3 available on /tmp/tbsocket3

Connecting and reading traceback sockets gives a blank.
I am using upstart to launch uwsgi.

The init script is-
start on runlevel [2345]
stop on runlevel [!2345]

respawn
exec /usr/bin/uwsgi --touch-reload /watchman/watchman/hero --py-tracebacker /tmp/tbsocket --enable-threads --master --processes 10 --threads 15 --logto /var/log/uwsgi.log --home /watchman/watchman/ --socket /tmp/uwsgi_watchman.sock --chmod-socket --module watchman_wsgi --pythonpath /watchman/watchman/deploy -H /usr/lib/pyve/ --max-requests=500  --harakiri 300 --harakiri-verbose --reload-on-as 2048 --worker-reload-mercy 5

Please help.
Regards,
Shitiz
Reply all
Reply to author
Forward
0 new messages