Why are my uWSGI processes dying immediately?

Posted by orokusaki on Server Fault See other posts from Server Fault or by orokusaki
Published on 2012-12-10T02:03:49Z Indexed on 2012/12/10 5:07 UTC
Read the original article Hit count: 643

Filed under:
|
|
|

I'm using Supervisor and the uWSGI Emperor mode. When I set limit-as to 512 (MB), workers die instantly (respawn, die, respawn, die, every 3/4 of a second or so):

[uwsgi]
workers = 4
threads = 40
limit-as = 512
harakiri = 20
max-requests = 1600
... non-performance/memory/processor-related settings ommitted

But, if I change limit-as to:

[uwsgi]
workers = 4
threads = 40
limit-as = 1024
harakiri = 20
max-requests = 1600
... non-performance/memory/processor-related settings ommitted

and restart uwsgi, the problem is gone immediately. In order to put a sham in this, I've modified the setting back to 512, restarted again, and the problem is back immediately.

Notes: My app is a simple Django app without much additional Python setup during start-up time.

© Server Fault or respective owner

Related posts about python

Related posts about process