unbit / uwsgi

uWSGI application server container
http://projects.unbit.it/uwsgi
Other
3.46k stars 691 forks source link

workers don't seem to be spawned properly #1198

Open john-chang-hs opened 8 years ago

john-chang-hs commented 8 years ago

Hi,

When I start uwsgi with threads enabled, sometimes it is not responsive after startup. I cannot see any errors in the logs. If i do a kill -10 on uwsgi, then it seems to kill the dead workers and respawn them properly.

Any ideas?

launch options: socket = 127.0.0.1:3031 chdir = /var/www pythonpath = /var/www wsgi = abc:app daemonize = /var/log/uwsgi.log master = true thunder-lock = true enable-threads = true processes = 2 threads = 2 thread-stacksize = 512 single-interpreter = true harakiri = 30 harakiri-verbose = true worker-reload-mercy = 30 listen = 128 stats = /tmp/stats.socket memory-report = true vacuum = true pidfile2 = /tmp/abc.pid

xrmx commented 8 years ago

You can start by checking if any of your config options may be the cause of the trouble, I'd start by removing each of these separately and see if it helps:

thread-stacksize = 512
single-interpreter = true