Skip to content
Advertisement

Too many open files raised by supervisord?

I use wrk to test web API service managed by supervisor on ubuntu 16.04. have error “too many open files”, but i have set system config

JavaScript

still have error “too many open files”

I found supervisord is belongs to root and cat /proc/PID/limits

JavaScript

so, add root limit settings to limits.conf like below

JavaScript

after restart supervisord it’s effected (cat /proc/PID/limits, got 65535) but supervisord exit soon after, and auto start with limits 1024.

JavaScript

reference: ubuntu – too many open files?

Advertisement

Answer

I resolved by sudo supervisorctl shutdown should’t kill P directly

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement