Linux: socket accept - "Too many open files"
2011-07-04 09:48
776 查看
一个老问题了,经常忘记如何去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-maxThat will give you the system wide limits of file descriptors.On the shell level, this will tell you your personal limit:
ulimit -nThis 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系统上的Java程序可能会出现"Too many open files"
- 『工具使用』SourceInsight error: "Too many files open" when saving documents.
- 使用php-simple-html-dom-parser遇到的create_debugger_socket("localhost", 9000) socket: Too many open files
- 解决openwrt上goagent报"Too many open files"错误的方法
- tomcat 6.0 报 “too many open files Too many open files" 问题的解决思路
- 分析错误:socket accept failed too many open files
- Linux "Too many open files" 问题分析
- linux tomcat 服务器抛出socket异常 Too many open files 的问题
- 解决Linux下“java.net.SocketException: Too many open files”异常
- Solving the "Too many open files" exception in linux
- Linux上Tomcat访问异常java.net.SocketException: Too many open files
- 浅谈linux ulimit命令(Too many open files 问题的解决)
- RHEL修改最大文件打开数,关于epoll socket Too many open files问题的解决
- Linux进程打开文件数太多(too many open files)的问题
- JAVA.NET.SOCKETEXCEPTION: TOO MANY OPEN FILES解决方法
- Caused by: java.net.SocketException: Too many open files
- 浅谈linux ulimit命令(Too many open files 问题的解决)
- Linux 遭遇 Too many open files
- linux 服务端程序。。。too many open files
- 解决java.net.socketexception too many open files