Linux: socket accept - "Too many open files"
来源:互联网 发布:太阳照常升起知乎 编辑:程序博客网 时间:2024/05/17 05:59
一个老问题了,经常忘记如何去fixed,所以在这里mark一下!
There are multiple places where Linux can have limits on the number of file descriptors you are allowed to open.
You can check the following:
cat /proc/sys/fs/file-max
That will give you the system wide limits of file descriptors.
On the shell level, this will tell you your personal limit:
ulimit -n
This can be changed in /etc/security/limits.conf - it's the nofile param.
However, if you're closing your sockets correctly, you shouldn't receive this unless you're opening a lot of simulataneous connections. It sounds like something is preventing your sockets from being closed appropriately. I would verify that they are being handled properly.
文章来源:http://stackoverflow.com/questions/880557/linux-socket-accept-too-many-open-files
- Linux: socket accept - "Too many open files"
- Linux : too many open files
- Linux open too many files
- linux open too many files
- nginx:accept() failed (24: Too many open files)解决方法
- nginx:accept() failed (24: Too many open files)
- too many open files
- too many open files
- Too many open files
- too many open files
- Too many open files
- too many files open
- too many open files
- too many open files
- Too many open files
- Open Too Many files
- Too many open files
- Too many open files
- 不用keytool,tomcat打开https
- 道指令与DNA
- ubuntu下安装telnet/ssh和ftp服务
- 道指令与创新
- .NET Framework 3.5 .
- Linux: socket accept - "Too many open files"
- iBATIS sql中的大于、小于、like等符号写法
- Android2.2使用广播机制完全退出程序
- oracle添加外键约束
- Oracle触发器的语法详解
- Android 信号强度的获取
- 云中之城(十一)
- c/c++ 运算符的优先级和结合性(整理) 收藏
- uboot在引导linux之前要做的事 theKernel 作用