<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

    主站蜘蛛池模板: 亚洲一区免费在线观看| 岛国精品一区免费视频在线观看 | 亚洲男人天堂2018av| 99ee6热久久免费精品6| 亚洲国产精品国自产电影| 好紧我太爽了视频免费国产| 亚洲三区在线观看无套内射| 精品免费视在线观看| 久久亚洲一区二区| 18以下岁毛片在免费播放| 亚洲免费在线观看视频| 国产成人免费爽爽爽视频| 亚洲精品无码专区在线播放| 午夜国产羞羞视频免费网站| 无码精品人妻一区二区三区免费| 亚洲国产精品成人久久蜜臀| aaa毛片免费观看| 亚洲精品tv久久久久久久久 | a级毛片黄免费a级毛片| 国产亚洲婷婷香蕉久久精品 | 99在线免费观看视频| 亚洲人成在线播放| 国产在线播放免费| 中文字幕a∨在线乱码免费看 | 在线A级毛片无码免费真人| 99亚洲乱人伦aⅴ精品| 久久亚洲中文字幕精品一区四 | 亚洲av日韩aⅴ无码色老头| 天堂亚洲免费视频| 久久久久久一品道精品免费看| 亚洲午夜在线一区| 免费大黄网站在线观| 在线观看免费视频网站色| 亚洲国产成+人+综合| 免费一级毛片不卡不收费| 日韩精品无码免费专区网站| 亚洲资源最新版在线观看| 亚洲人成国产精品无码| 久久精品国产免费观看| 夜夜爽妓女8888视频免费观看| 久久久久久亚洲精品成人|