当前位置:   article > 正文

高并发下出现 Too many open files_socket() failed (24: too many open files) while co

socket() failed (24: too many open files) while connecting to upstream

问题描述:在高并发访问时,出现

socket() failed (24: Too many open files) while connecting to upstream, client: 222.217.216.66, server: s.fpbshg.cn, request: "GET /1.0.0/ll/share HTTP/1.1", upst       ream: "fastcgi://127.0.0.1:9000", host: "", referrer:

的提示


问题排查:

ulimit  -n

返回65535 无异常


问题解决

修改 nginx.conf,增加worker_rlimit_nofile 选项


#指定一个nginx进程可以打开的最多文件描述符数目
worker_rlimit_nofile 65535;

问题解决

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/660226
推荐阅读
相关标签
  

闽ICP备14008679号