<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 閱讀(997) 評論(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

    <2009年4月>
    2930311234
    567891011
    12131415161718
    19202122232425
    262728293012
    3456789

    常用鏈接

    留言簿(6)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 国产亚洲情侣一区二区无| 巨胸喷奶水视频www网免费| 亚洲日韩在线中文字幕第一页| 亚洲国产高清国产拍精品| 天天摸夜夜摸成人免费视频| 亚洲娇小性xxxx| 人妻视频一区二区三区免费| 中文字幕无码亚洲欧洲日韩| 97人伦色伦成人免费视频| 美女视频黄免费亚洲| 在线免费一区二区| 亚洲sm另类一区二区三区| 国产午夜免费福利红片| 另类图片亚洲校园小说区| 亚洲欧洲日本在线| 99久久免费国产特黄| 亚洲人成电影亚洲人成9999网| 久久ww精品w免费人成| 激情五月亚洲色图| 国产精品va无码免费麻豆| 四虎精品免费永久免费视频| 亚洲中文字幕不卡无码| 人妻无码久久一区二区三区免费| 亚洲人成电影在线观看青青| 四虎成人免费观看在线网址| free哆拍拍免费永久视频| 亚洲一区二区三区四区在线观看| 国产精品成人免费福利| 国产成人综合亚洲| 国产亚洲综合一区柠檬导航| 国产精彩免费视频| 色吊丝性永久免费看码| 色婷婷六月亚洲婷婷丁香| 操美女视频免费网站| 丝袜足液精子免费视频| 亚洲人成免费网站| 亚洲精品尤物yw在线影院| 57pao国产成永久免费视频| 美国毛片亚洲社区在线观看| 久久久久亚洲精品影视| 成人a视频片在线观看免费|