<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    Linux Increase The Maximum Number Of Open Files / File Descriptors

    The ulimit command provides control over the resources available to the shell and/or to processes started by it, on systems that allow such control. The maximum number of open file descriptors displayed with following command (login as the root user).

    Command To List Number Of Open File Descriptors

    Use the following command command to display maximum number of open file descriptors:
    cat /proc/sys/fs/file-max
    Output:

    75000

    75000 files normal user can have open in single login session. To see the hard and soft values, issue the command as follows:
    # ulimit -Hn
    # ulimit -Sn

    To see the hard and soft values for httpd or oracle user, issue the command as follows:
    # su - username
    In this example, su to oracle user, enter:
    # su - oracle
    $ ulimit -Hn
    $ ulimit -Sn

    System-wide File Descriptors (FD) Limits

    The number of concurrently open file descriptors throughout the system can be changed via /etc/sysctl.conf file under Linux operating systems.

    The Number Of Maximum Files Was Reached, How Do I Fix This Problem?

    Many application such as Oracle database or Apache web server needs this range quite higher. So you can increase the maximum number of open files by setting a new value in kernel variable /proc/sys/fs/file-max as follows (login as the root):
    # sysctl -w fs.file-max=100000
    Above command forces the limit to 100000 files. You need to edit /etc/sysctl.conf file and put following line so that after reboot the setting will remain as it is:
    # vi /etc/sysctl.conf
    Append a config directive as follows:
    fs.file-max = 100000
    Save and close the file. Users need to log out and log back in again to changes take effect or just type the following command:
    # sysctl -p
    Verify your settings with command:
    # cat /proc/sys/fs/file-max
    OR
    # sysctl fs.file-max

    User Level FD Limits

    The above procedure sets system-wide file descriptors (FD) limits. However, you can limit httpd (or any other users) user to specific limits by editing /etc/security/limits.conf file, enter:
    # vi /etc/security/limits.conf
    Set httpd user soft and hard limits as follows:
    httpd soft nofile 4096
    httpd hard nofile 10240

    Save and close the file. To see limits, enter:
    # su - httpd
    $ ulimit -Hn
    $ ulimit -Sn



    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2012-08-21 12:51 Chan Chen 閱讀(1417) 評論(0)  編輯  收藏 所屬分類: Linux

    主站蜘蛛池模板: 黄网站在线播放视频免费观看| 久久精品国产亚洲αv忘忧草| 亚洲A∨精品一区二区三区下载| 亚洲人成网站免费播放| 亚洲精品国产免费| 免费v片在线观看视频网站| 久久亚洲AV无码精品色午夜| 鲁大师在线影院免费观看 | 久久久久亚洲精品日久生情| 先锋影音资源片午夜在线观看视频免费播放| 亚洲午夜成人精品无码色欲| 桃子视频在线观看高清免费视频| 亚洲国产精品无码专区在线观看| a级在线免费观看| 亚洲国产精品久久66| 精品国产sm捆绑最大网免费站| 亚洲三级视频在线观看| 成人毛片18女人毛片免费| 亚洲成a∧人片在线观看无码 | 免费大片黄手机在线观看| 中文字幕在线免费播放| 亚洲国产女人aaa毛片在线 | 97在线视频免费| 亚洲伦理中文字幕| 亚洲国产V高清在线观看| 99在线视频免费观看| 亚洲成av人片在线看片| 日本免费人成黄页在线观看视频| 美女被暴羞羞免费视频| 久久精品亚洲中文字幕无码网站| 91青青国产在线观看免费| 亚洲avav天堂av在线网毛片| 美腿丝袜亚洲综合| 国产曰批免费视频播放免费s| 午夜亚洲国产理论片二级港台二级 | 亚洲av无码偷拍在线观看| 亚洲综合图色40p| 亚洲免费一级视频| 特级av毛片免费观看| 久久精品国产亚洲av成人| 成人毛片18女人毛片免费96 |