<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) 評(píng)論(0)  編輯  收藏 所屬分類: Linux

    主站蜘蛛池模板: 亚洲一级大黄大色毛片| 亚洲成在人线电影天堂色| 黄色a级片免费看| 永久黄网站色视频免费| 亚洲人成网站999久久久综合| 91精品免费久久久久久久久| 2022年亚洲午夜一区二区福利 | 99久久久国产精品免费无卡顿 | 日本免费人成视频播放| 亚洲国产精品无码久久九九大片| 免费可以在线看A∨网站| 亚洲欧洲无码一区二区三区| 日韩中文无码有码免费视频 | 亚洲 无码 在线 专区| 一级特黄a免费大片| 国产av无码专区亚洲av果冻传媒| a级片免费在线播放| 亚洲av色福利天堂| 91免费资源网站入口| 亚洲AV无码男人的天堂| 亚洲精品国产精品乱码不卡| 国产线视频精品免费观看视频| 国产亚洲一区二区手机在线观看| 无码av免费一区二区三区试看| 亚洲小说区图片区| 国产精品免费视频播放器| 三上悠亚电影全集免费 | 亚洲AV无码国产精品色| 免费一级毛片不卡在线播放| 精品国产呦系列在线观看免费 | 免费在线黄色网址| 国产在线观看无码免费视频| 亚洲第一福利网站| 成人免费一区二区无码视频| 丰满亚洲大尺度无码无码专线 | 亚洲高清一区二区三区电影| 亚洲美女在线国产| 在线精品一卡乱码免费| 成人a毛片免费视频观看| 亚洲综合久久成人69| 免费中文字幕一级毛片|