系统监控之文件句柄监控
来源:互联网 发布:喜马拉雅听书 知乎 编辑:程序博客网 时间:2024/06/05 02:23
当系统文件句柄使用数达到上限时,系统会无法创建进程,因此,系统文件句柄使用率是系统监控中的一项比较重要的指标。要监控系统文件句柄,可读取系统文件/proc/sys/fs/file-nr。先看一下man 中对/proc/sys/fs/file-nr的说明:
This (read-only) file gives the number of files presently opened. It contains three numbers: the number of allocated file handles; the number of free file handles; and the maximum number of file handles. The kernel allocates file handles dynamically, but it doesn't free them again. If the number of allocated files is close to the max-imum, you should consider increasing the maximum. When the number of free file handles is large, you've encountered a peak in your usage of file handles and you probably don't need to increase the maximum.
从这段说明中可以知道,文件中包含3个数据,第一个表示当前系统已经分配的文件句柄数,第二个表示未被使用的文件句柄数,第三个表示系统的最大文件句柄数。因此,文件句柄使用率可通过当前已经分配的除以最大文件句柄数获得。
- 系统监控之文件句柄监控
- 句柄监控
- 文件监控系统设计(1)
- delphi 监控系统文件操作
- nagios插件之系统打开文件数监控
- 监控系统-小米监控
- socket之flume监控系统
- Linux常用命令之系统监控
- 监控系统之深度解析
- 文件监控系统设计(2)-"Windows 文件监控API"
- 网络舆情监控系统之军犬网络舆情监控系统
- zabbix之日志文件监控
- zabbix之日志文件监控
- 监控系统
- 监控系统
- 系统监控
- 监控系统
- Java 文件监控,实时监控文件加载之Commons-io
- SharedPreferenceUtil
- 9.5联合作战战果
- Spring MVC 解读——<context:component-scan/>
- 机器学习算法-kNN
- HTML5标签小结
- 系统监控之文件句柄监控
- bzoj1821: [JSOI2010]Group 部落划分 Group
- C++ 标准库 string类型(一)
- Windows下安装配置pip
- 天猫总站JavaEE版本的实现(一):jdbc的学习
- 具有五层协议的计算机网络体系结构
- Android日夜间切换模式
- (学习笔记)抽象类和接口
- Codeforces Round #432 (Div. 2) B Arpa and an exam about geometry