ulimit -a /proc/sys/fs/file-nr 数字解析
来源:互联网 发布:网络抓壮丁是什么意思 编辑:程序博客网 时间:2024/06/03 13:42
file-nr:
Historically, the three values in file-nr denoted the number of
allocated file handles, the number of allocated but unused file
handles, and the maximum number of file handles. Linux 2.6 always
reports 0 as the number of free file handles – this is not an error, it
just means that the number of allocated file handles exactly matches
the number of used file handles.
ulimit -c : 该结果中nofile是当前程序file handler资源限制 ,默认一般为1024
对普通用户是不能够超过这个值的(1024) 但是对超级用户是可以超过这个值的。
file-max : 文件系统最大file handler 数目
/proc/pid/fd/ 目录下面详细显示了pid进程所占用的file handler ,当然一般file handler 太大都是因为socket忘记关闭导致。
综合以上分析, 也就会出现 在一个程序中, socket 资源被占用完,同时, 其他程序能够正常的运行 。 这是因为对每个程序都有1024 个file handler的限制, 同时,所有程序的总和用file-max 现在, 所以, 一个程序socket 资源用完了一般不影响其他的程序,但是当这样的程序太多了导致超过文件系统规定的最大数目(file-max) , 其他的程序当然就会受影响了
- ulimit -a /proc/sys/fs/file-nr 数字解析
- linux 中数据的含义 /proc/sys/fs/file-nr
- /proc/sys/fs/file-max VS ulimit -n
- 设置Linux打开文件句柄/proc/sys/fs/file-max和ulimit -n的区别
- The Deep Tour of /proc/sys/fs/
- /proc/sys/vm下内核参数解析
- file max file nr
- proc sys
- linux/fs/proc.txt
- proc fs 例子
- proc fs modules
- ORA-27090 和 fs.aio-max-nr
- Read and Write a /proc File
- sys-fs/dmraid changelog
- ulimit -a
- [proc 系统] /proc/sys/kernel
- /proc/sys/vm/优化
- proc sys文件系统对比
- 教程:如何制作一个多功能U盘
- My SQL 索引优化
- Linux V4L2 摄像头视频采集
- asp.net给单独页面设置编码
- VMware一亿美元收购IT分析公司Integrien
- ulimit -a /proc/sys/fs/file-nr 数字解析
- 笔试题整理1
- 谈谈情跳跳舞
- Hadoop简要介绍
- Growing in your SAP Career
- Android源码学习之一-Activity是如何实现主题变化的
- Hadoop安装部署
- DSSM数据管理项目点滴
- myEclipse 无法配置