【Debug】OSError: [Errno 24] Too many open files

使用tensorboard 一次性打开太多文件的时候会报错;


输入以下命令:
$ ulimit -n
> 1024
显示系统最大支持打开1024个文件


临时修改方法:
$ ulimit -n 2048
此方法为临时修改,当前有效,退出后就恢复原来设置。


永久修改方法:
$ sudo vim /etc/security/limits.conf
soft nofile 2048
hard nofile 2048
保存后重启。


参考资料:https://blog.csdn.net/m0_55837832/article/details/116695693

posted @ 2021-12-03 19:31  林東雨  阅读(1458)  评论(0编辑  收藏  举报