我在ubuntu 16.04上使用wrk测试由supervisor管理的web API服务。我有错误“太多打开的文件”,但我已经设置了系统配置
/etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535仍然有错误“打开的文件太多”
我发现supervisord属于root和cat /proc/PID/limits
Max open files 1024 4096 files因此,将根限制设置添加到limits.conf,如下所示
root soft nofile 65535
root hard nofile 65535重新启动supervisord后,它会生效(cat /proc/PID/limits,got为65535),但supervisord很快就会退出,并自动启动,限制为1024.
Jul 12 18:55:53 adhost supervisord[10866]: Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
Jul 12 18:55:53 adhost supervisord[10866]: For help, use /usr/bin/supervisord -h
Jul 12 18:55:53 adhost systemd[1]: supervisor.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 12 18:55:53 adhost supervisorctl[10871]: Shut down发布于 2017-07-12 19:14:50
我被sudo supervisorctl shutdown解决了不应该直接杀死P
https://stackoverflow.com/questions/45055748
复制相似问题