<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 技術(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ù)  更多評論
      
    # 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)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲日本久久久午夜精品| 亚洲欧洲日产国码高潮αv| 亚洲卡一卡2卡三卡4卡无卡三| selaoban在线视频免费精品| 亚洲免费在线观看| 日韩在线视频线视频免费网站| 免费A级毛片无码A∨男男| 大片免费观看92在线视频线视频| mm1313亚洲精品国产| 国产特黄一级一片免费 | 四虎影视在线影院在线观看免费视频 | 亚洲乱码日产精品a级毛片久久| 特级毛片全部免费播放a一级| 亚洲色婷婷综合开心网| 另类免费视频一区二区在线观看| 亚洲人成电影亚洲人成9999网| 国产h视频在线观看网站免费| 国产精品亚洲片在线va| 国产无遮挡吃胸膜奶免费看| 免费精品国自产拍在线播放| 亚洲乱色熟女一区二区三区丝袜| 久久这里只精品99re免费| 亚洲一区免费在线观看| 免费在线看片网站| 免费看搞黄视频网站| 亚洲伊人久久大香线蕉在观| 伊在人亚洲香蕉精品区麻豆| 黄网站色视频免费在线观看的a站最新| 91久久亚洲国产成人精品性色 | 久久久久久毛片免费看| 亚洲一二成人精品区| 国产精品美女午夜爽爽爽免费| 粉色视频免费入口| 亚洲电影国产一区| 日本xxwwxxww在线视频免费| 成在人线av无码免费高潮水| 亚洲免费视频播放| 亚洲色偷偷狠狠综合网| 国产曰批免费视频播放免费s| 一级毛片a女人刺激视频免费| 亚洲一区动漫卡通在线播放|