Changes between Version 12 and Version 13 of jazz/10-05-11
- Timestamp:
- May 11, 2010, 3:57:53 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/10-05-11
v12 v13 29 29 743964 30 30 }}} 31 * /proc/sys/fs/file-max - 目前已開啟檔案個數、可供開啟檔案個數、總開啟檔案上限 31 * 修改方法: 使用 sysctl 指令或編輯 /etc/sysctl.conf 32 {{{ 33 sysctl -w fs.file-max=100000 34 }}} 35 * /proc/sys/fs/file-nr - 目前已開啟檔案個數、可供開啟檔案個數、總開啟檔案上限 32 36 {{{ 33 37 [root@srv-4 proc]# cat /proc/sys/fs/file-nr … … 40 44 (the number of file descriptors allocated since boot) 41 45 }}} 42 * 修改方法: 使用 sysctl 指令或編輯 /etc/sysctl.conf43 {{{44 sysctl -w fs.file-max=10000045 }}}46 46 * /etc/security/limits.conf - 每個程序(process)可以開啟檔案的個數(number limits of open files per process) - 像 HDFS 的 !DataNode 就需要調整這種參數([wiki:jazz/10-02-22#Hadoop:HDFS 2010-02-22]) 47 47 {{{