<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 閱讀(1414) 評論(0)  編輯  收藏 所屬分類: Linux

    主站蜘蛛池模板: 精品一区二区三区免费毛片| 亚洲女人影院想要爱| 青青视频免费在线| 国产一区二区视频免费| 亚洲AV无码AV吞精久久| 美女黄网站人色视频免费国产| 亚洲日本久久一区二区va| 无码中文字幕av免费放| 亚洲精品无码av片| 亚洲第一网站男人都懂| 久久久久久噜噜精品免费直播| 亚洲精品成人片在线播放| 久久国产精品一区免费下载| 久久亚洲AV成人无码| 在线视频精品免费| 色九月亚洲综合网| 亚洲午夜久久久久久久久久| 日韩人妻一区二区三区免费| 亚洲免费在线视频播放| 国产精品免费看香蕉| 中文字幕版免费电影网站| 久久亚洲精品国产精品| 免费无码AV电影在线观看| 美女露100%胸无遮挡免费观看| 国产亚洲av片在线观看18女人| 久章草在线精品视频免费观看| 亚洲国产成AV人天堂无码| 免费看一级做a爰片久久| 老司机精品免费视频| 亚洲国产成人精品无码区在线秒播| 在线观看免费宅男视频| 亚洲第一视频在线观看免费| 内射少妇36P亚洲区| 午夜毛片不卡高清免费| 国产免费人成视频尤勿视频| 亚洲精品网站在线观看你懂的| 无码国模国产在线观看免费| 一区二区在线免费观看| 亚洲AV一区二区三区四区| 亚洲国产精品特色大片观看完整版| 一二三四免费观看在线电影|