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

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

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

    jojo's blog--快樂憂傷都與你同在
    為夢想而來,為自由而生。 性情若水,風起水興,風息水止,故時而激蕩,時又清平……
    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) 評論(2)  編輯  收藏 所屬分類: Linux 技術相關

    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.  回復  更多評論
      
    # 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)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 啦啦啦中文在线观看电视剧免费版| 久久国产乱子伦精品免费一| 毛片a级毛片免费播放100| 亚洲视频在线观看网站| 最近2019免费中文字幕视频三| 亚洲嫩模在线观看| 日本一卡精品视频免费| 亚洲色图视频在线观看| 亚洲成人免费在线观看| 久久精品国产亚洲av麻豆蜜芽| 无码人妻精品中文字幕免费东京热| 亚洲女人初试黑人巨高清| 无码人妻精品一二三区免费| 亚洲熟女精品中文字幕| 国产又粗又长又硬免费视频| 牛牛在线精品观看免费正| JLZZJLZZ亚洲乱熟无码| 国产麻豆成人传媒免费观看| 亚洲激情中文字幕| 久久久久久久免费视频| 亚洲av无码av在线播放| 亚洲综合最新无码专区| 99久久久国产精品免费蜜臀| 亚洲三级中文字幕| 免费看小12萝裸体视频国产| aa毛片免费全部播放完整| 亚洲色偷偷偷网站色偷一区| 大香人蕉免费视频75| 四虎成人精品国产永久免费无码| 亚洲精品无码高潮喷水在线| 免费v片在线观看视频网站| 亚洲成a∨人片在无码2023| 国产gv天堂亚洲国产gv刚刚碰| 99在线热视频只有精品免费| 亚洲欧洲日本在线观看| 亚洲精品成人久久久| 8888四色奇米在线观看免费看| 亚洲成a人无码亚洲成av无码 | 色窝窝免费一区二区三区| 在线观看亚洲专区| 亚洲人成电影在线天堂|