python uwsgi报错epoll_ctl(): Bad file descriptor

时间:2024-08-25 17:34:14

今天安装了uwsgi+supervisord+nginx,一直访问不了

直接启动uwsgi使用nginx访问,查看有大量报错:epoll_ctl(): Bad file descriptor [core/event.c line 521]

查看strace和lsof也没有头绪,仔细看报错有epoll_create(): Too many open files [core/event.c line 504]

可能是进程数太多了超过文件句柄数,把uwsgi进程数改小后就可以了,待会改一下文件句柄数也可以