Linux进程打开文件数太多(too many open files)的问题

系统的max open files已经设置到65535。

Linux进程打开文件数太多(too many open files)的问题

Linux进程打开文件数太多(too many open files)的问题

但是进程打开的文件数一到1000多accept就报错。报错信息:24 :Too many open files

Linux进程打开文件数太多(too many open files)的问题

主要是Linux程序级别的限制为1024。而一个socket连接就是一个file,连接过多,导致accept报错。

最后通过ulimit命令把文件限制改到65535。就没有再报错了。



相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-02-28
  • 2021-07-15
  • 2021-11-03
  • 2022-01-17
  • 2021-05-29
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-09-05
  • 2022-01-21
相关资源
相似解决方案