問題描述
打開文件過多錯誤,但 99.5% 的 inode 是免費的 (Too many open files error but 99.5% inodes are free)
我收到錯誤“打開的文件太多”;但是 99.5% 的 inode 是免費的。ulimit 是 1024(軟)和 4076(硬)。錯誤可能是由於其他問題引起的嗎?
參考解法
方法 1:
Inodes are not related to open files. You can check current open files using lsof (sth. like lsof | wc ‑l
). I would suggest to just raise the limit in the /etc/security/limits.conf
Try adding something like:
* soft nofile 20000
* hard nofile 20000
And see if that helps.
(by Karthik Srinivas、alfheim)