Menu

#138 Bursting of filedescriptor usage in org.tm4j.topicmap.cmd.*

closed
nobody
5
2007-04-17
2007-04-11
No

When merging a large amount of small XTM files, the number of filedescriptors run out. The reason is that, currently, all files are opened before the first file is processed. This practically makes processing of a certain amount of files in one run impossible.

Discussion

  • Xuan Baldauf

    Xuan Baldauf - 2007-04-11

    Logged In: YES
    user_id=506885
    Originator: YES

    The solution works by delaying the actual opening of the underlying FileInputStream or URLInputStream up to the point the files are actually read and by hurrying up closing the underlying InputStream by closing directly after the last byte was read.

    File Added: onDemandInputStreams.patch

     
  • Xuan Baldauf

    Xuan Baldauf - 2007-04-11

    This is a quick solution to the prescribed problem. It needs a little more cleanup.

     
  • Xuan Baldauf

    Xuan Baldauf - 2007-04-17
    • status: open --> closed
     
  • Xuan Baldauf

    Xuan Baldauf - 2007-04-17

    Logged In: YES
    user_id=506885
    Originator: YES

    Fixed in CVS.

     

Log in to post a comment.