原文:nginx accept() failed (24: Too many open files)

nginx服務器出現如下信息: crit : accept failed : Too many open files crit : accept failed : Too many open files crit : accept failed : Too many open files crit : accept failed : Too many open files crit : acce ...

2017-01-17 20:08 0 1848 推薦指數:

查看詳情

分析錯誤:socket accept failed too many open files

步驟:1、--查看當前各個進程打開的文件句柄數,其結果的第一列表示句柄數,第二列表示進程號lsof -n|awk '{print $2}'|sort|uniq -c |sort -nr|more 2、 ...

Wed Sep 21 00:30:00 CST 2016 0 4916
Nginx Too many open files

2019/07/25 08:31:31 [crit] 15929#15929: accept4() failed (24: Too many open files) 2019/07/25 08:31:31 [crit] 15930#15930: accept4() failed (24 ...

Fri Jul 26 19:54:00 CST 2019 0 1714
[Go] gin 解決: accept4: too many open files

我的在線客服系統 go gin服務出現了大量的 too many open files 錯誤 , 這時候服務也是連不上的 前端接口的顯示就是504 , 超出了nginx設置的超時時間 通過lsof -p 進程id 可以看到打開的文件數量已經1031個了 , 說明了超出了單進程打開文件 ...

Thu May 20 00:10:00 CST 2021 0 234
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM