Changes between Version 12 and Version 13 of jazz/10-05-11


Ignore:
Timestamp:
May 11, 2010, 3:57:53 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-05-11

    v12 v13  
    2929743964
    3030}}}
    31    * /proc/sys/fs/file-max - 目前已開啟檔案個數、可供開啟檔案個數、總開啟檔案上限
     31     * 修改方法: 使用 sysctl 指令或編輯 /etc/sysctl.conf
     32{{{
     33sysctl -w fs.file-max=100000
     34}}}     
     35   * /proc/sys/fs/file-nr - 目前已開啟檔案個數、可供開啟檔案個數、總開啟檔案上限
    3236{{{
    3337[root@srv-4 proc]# cat /proc/sys/fs/file-nr
     
    4044(the number of file descriptors allocated since boot)
    4145}}}
    42      * 修改方法: 使用 sysctl 指令或編輯 /etc/sysctl.conf
    43 {{{
    44 sysctl -w fs.file-max=100000
    45 }}}     
    4646   * /etc/security/limits.conf - 每個程序(process)可以開啟檔案的個數(number limits of open files per process) - 像 HDFS 的 !DataNode 就需要調整這種參數([wiki:jazz/10-02-22#Hadoop:HDFS 2010-02-22])
    4747{{{