<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级片免费看| 亚洲综合小说另类图片动图| 亚洲精品成人av在线| 久久久久亚洲AV无码专区网站| 无人影院手机版在线观看免费| 一级毛片在线免费看| 久久久久女教师免费一区| 成人国产网站v片免费观看| 亚洲欧美国产国产综合一区| 亚洲女人初试黑人巨高清| 亚洲VA中文字幕无码一二三区 | 久久亚洲精品成人av无码网站| 国产亚洲精品看片在线观看| 免费一级成人毛片| 日本黄色免费观看| 日韩伦理片电影在线免费观看| 我想看一级毛片免费的| 24小时免费直播在线观看| 国产乱码免费卡1卡二卡3卡| **aaaaa毛片免费同男同女| 一级毛片在线观看免费| 日韩电影免费在线观看| 精品国产一区二区三区免费| 热久久这里是精品6免费观看 | 亚洲AV成人精品日韩一区18p| 日韩视频免费在线| 四虎成人精品一区二区免费网站| 永久免费av无码网站韩国毛片 | 相泽南亚洲一区二区在线播放| 亚洲AV综合永久无码精品天堂| 色欲色欲天天天www亚洲伊| 亚洲av色香蕉一区二区三区| 国产精品久久久久久亚洲小说| 精品国产亚洲第一区二区三区| 黄色a三级免费看| 精品国产福利尤物免费|