python uwsgi报错epoll_ctl(): Bad file descriptor

今天安装了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进程数改小后就可以了,待会改一下文件句柄数也可以

posted @ 2016-12-12 14:01  巫谢  阅读(1185)  评论(0编辑  收藏  举报