gpt4 book ai didi

linux - 打开文件过多错误,但 99.5% 的 inode 是免费的

转载 作者:行者123 更新时间:2023-12-04 19:40:54 25 4
gpt4 key购买 nike

我收到错误“打开的文件太多”,但 99.5% 的 inode 是免费的。 ulimit 是 1024 用于软和
和 4076 硬。错误可能是由于其他问题引起的吗?

最佳答案

inode 与打开的文件无关。您可以使用 lsof 检查当前打开的文件(例如 lsof | wc -l )。我建议只提高 /etc/security/limits.conf 中的限制。
尝试添加类似:

*  soft  nofile  20000
* hard nofile 20000
看看这是否有帮助。

关于linux - 打开文件过多错误,但 99.5% 的 inode 是免费的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62927634/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com