linux 打开文件数 too many open files 解决方法
来源:互联网 发布:ubuntu配置网关 编辑:程序博客网 时间:2024/05/17 22:12
现象描述:
由于生产系统网络的升级,导致F5负载均衡器无法使用。系统中正常情况下是起的双节点前置(A节点、B节点),所有客户端都访问F5的地址,然后通过F5转到A节点或B节点,由于F5无法起到负载的作用,所以F5把所有请求直接转到A节点上,导致A节点的交易量是平时的二倍,并发量增加导致系统无法创建socket连接,交易无法进行。linux系统默认的open files是1024.
Linux 打开文件数 too many open files 解决方法
too many open files
出现这句提示的原因是程序打开的文件/socket连接数量超过系统设定值。
查看每个用户最大允许打开文件数量
ulimit -a
其中 open files (-n) 1024 表示每个用户最大允许打开的文件数量是1024
查看当前系统打开的文件数量
查看某一进程的打开文件数量
设置open files数值方法
ulimit -n 2048
这样就可以把当前用户的最大允许打开文件数量设置为2048了,但这种设置方法在重启后会还原为默认值。
永久设置方法
改完后注销一下就能生效。
参考:http://blog.csdn.net/fdipzone/article/details/34588803
阅读全文
0 0
- linux 打开文件数 too many open files 解决方法
- linux 打开文件数 too many open files 解决方法
- linux 打开文件数 too many open files 解决方法
- linux 打开文件数 too many open files 解决方法
- linux 打开文件数 too many open files 解决方法
- android jni打开文件数 too many open files 解决方法
- 遇到问题----linux-----linux 打开文件数 too many open files 解决方法
- too many open files(打开的文件过多)解决方法
- centos 修改系统打开最大文件数限制 too many open files的解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- 在Linux中打开了太多文件(Too many open files)的解决方法
- linux Too many open files解决方法
- linux报too many open files解决方法
- Too many open files解决方法
- Too many open files解决方法
- 解决vs2013启动出现“cannot find one or more components .Please reinstall the application”
- Quartz实现任务调度
- spring mvc的工作流程
- 只有五行的Floyd最短路径算法
- 初学WebService
- linux 打开文件数 too many open files 解决方法
- 算法训练 4-1打印下述图形
- 【实践】基于spark的CF实现及优化
- Android——从零开始写一款开源项目
- iOS 服务器返回NSData数据,解析为null
- 远程oracle热备
- (读书笔记)《玩着玩着就能成为PPT高手》——说的漂亮
- Centos 6.9 Redis 4.0.1 主从配置
- 原生JS页面初始化事件以及Jquery初始化页面加载事件