<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    jojo's blog--快樂憂傷都與你同在
    為夢(mèng)想而來,為自由而生。 性情若水,風(fēng)起水興,風(fēng)息水止,故時(shí)而激蕩,時(shí)又清平……
    posts - 11,  comments - 30,  trackbacks - 0

    Increase file descriptor limit under Linux to prevent

    java.net.SocketException: Too many open files

    Get current limit:

    ulimit -n

    cat /proc/sys/fs/file-nr

    The default limit is 1024.

    Get current number of open file descriptors:

    lsof [-p pid] | wc -l

    Increase the limit:

    Edit /etc/security/limits.conf:

    username hard nofile 32768

    posted on 2009-04-14 10:53 Blog of JoJo 閱讀(996) 評(píng)論(2)  編輯  收藏 所屬分類: Linux 技術(shù)相關(guān)

    FeedBack:
    # re: Increase file descriptor limit under Linux to prevent java.net.SocketException: Too many open files
    Increase file descriptor limit under Linux to prevent java.net.SocketException: Too many open files
    Increase file descriptor limit under Linux to
    2009-04-14 10:57 | Blog of JoJo
    There are other places your application might be opening files than
    just URLConnection... for example every Runtime.exec() costs 3 open
    files.

    To check the limit, use "ulimit -a" or "ulimit -n" in the shell.

    This isn't a solution, but you can increase the limit by running
    "ulimit -n someNumber" in the shell before running the application, or
    put the command in your .bash_profile or similar place so it runs
    every time you login.

    The solution is to find out what files your application isn't closing,
    and make sure you close them. You can do that by doing "ls -l" in
    /proc/NN/fd, or running lsof on the process.  回復(fù)  更多評(píng)論
      
    # re: Increase file descriptor limit under Linux to prevent java.net.SocketException: Too many open files
    Increase file descriptor limit under Linux to prevent java.net.SocketException: Too many open files
    Increase file descriptor limit under Linux to

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(6)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊(cè)

    收藏夾

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 久草视频在线免费| 亚洲第一页综合图片自拍| 国产成人高清亚洲一区91| ZZIJZZIJ亚洲日本少妇JIZJIZ| 日本不卡免费新一区二区三区| 亚洲嫩草影院在线观看| 免费a级黄色毛片| 国产成年无码久久久免费| 色老板亚洲视频免在线观| 亚洲欧洲久久久精品| 免费观看国产网址你懂的| 免费亚洲视频在线观看| 久久国产亚洲精品无码| 欧洲美熟女乱又伦免费视频| 鲁丝片一区二区三区免费| 亚洲免费综合色在线视频| 亚洲AV永久青草无码精品| 国产免费卡一卡三卡乱码| 亚洲高清视频免费| 国产精品一区二区三区免费 | 野花视频在线官网免费1| 亚洲精品少妇30p| 午夜寂寞在线一级观看免费| 国产情侣久久久久aⅴ免费| 国产亚洲漂亮白嫩美女在线 | 中文字幕亚洲精品无码| 亚洲国产精品免费视频| va亚洲va日韩不卡在线观看| www.黄色免费网站| 久久精品国产大片免费观看| 一道本不卡免费视频| 亚洲精品无码mⅴ在线观看| 亚洲精品成人av在线| 亚洲精品偷拍视频免费观看 | 亚洲欧洲国产精品你懂的| 亚洲人成人网站在线观看| 日韩一级视频免费观看| 亚色九九九全国免费视频| 99re热精品视频国产免费| a毛片免费全部播放完整成| 成人精品综合免费视频|