<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在线影院| 四虎永久在线观看免费网站网址| 日本人护士免费xxxx视频| 亚洲看片无码在线视频| 国产香蕉免费精品视频| 亚洲欧洲精品视频在线观看| 最好看的中文字幕2019免费| 色婷婷六月亚洲婷婷丁香| 99re6免费视频| 亚洲欧洲国产综合| 免费无码A片一区二三区| 亚洲成_人网站图片| 午夜免费福利网站| 亚洲av无码一区二区三区在线播放| 午夜影视在线免费观看| 免费国产在线精品一区| 亚洲伊人久久综合影院| 爱丫爱丫影院在线观看免费| 亚洲av鲁丝一区二区三区| 51视频精品全部免费最新| 在线亚洲高清揄拍自拍一品区| 日韩视频免费一区二区三区| 麻豆91免费视频| 亚洲av无码一区二区三区不卡| 99xxoo视频在线永久免费观看| 亚洲男人的天堂久久精品| 免费看大美女大黄大色| 亚洲第一视频在线观看免费| 亚洲av无码乱码国产精品| 国产在线jyzzjyzz免费麻豆| 婷婷国产偷v国产偷v亚洲| 亚洲中文字幕无码一区| 久草视频在线免费| 色婷婷精品免费视频| 亚洲AV无码国产在丝袜线观看| AA免费观看的1000部电影| 曰批免费视频播放在线看片二| 亚洲阿v天堂在线| 成熟女人牲交片免费观看视频| 搜日本一区二区三区免费高清视频 | 色老头综合免费视频|