<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

    主站蜘蛛池模板: 国产性爱在线观看亚洲黄色一级片| 亚洲视频精品在线观看| 希望影院高清免费观看视频| 特黄特色大片免费| 国产亚洲玖玖玖在线观看| 亚洲av最新在线网址| 亚洲毛片不卡av在线播放一区| www.999精品视频观看免费| 亚在线观看免费视频入口| 牛牛在线精品观看免费正| 亚洲国产av玩弄放荡人妇| 亚洲人成影院午夜网站| 亚洲黄色在线观看视频| 国产亚洲精品观看91在线| 国产亚洲精久久久久久无码AV| 国产真人无遮挡作爱免费视频| 最近免费中文字幕大全视频| 1000部拍拍拍18勿入免费凤凰福利| 日本人成在线视频免费播放| 一级女人18片毛片免费视频| 香蕉视频免费在线播放| 亚洲国产成人无码AV在线| 国产精品亚洲综合久久| 亚洲国产情侣一区二区三区| 911精品国产亚洲日本美国韩国| 精品久久香蕉国产线看观看亚洲| 久久精品亚洲福利| 中文字幕不卡亚洲| 国产gv天堂亚洲国产gv刚刚碰 | 久久久久久a亚洲欧洲AV| 亚洲伊人久久大香线蕉综合图片| 久久亚洲精品无码观看不卡| 亚洲国产一区二区三区| 亚洲国产综合人成综合网站| 亚洲精品tv久久久久| 亚洲精品无码久久不卡| 亚洲乳大丰满中文字幕| 亚洲国产精品特色大片观看完整版| 国产亚洲福利精品一区| 在线电影你懂的亚洲| 亚洲国产人成在线观看|