-
Bug
-
Resolution: Fixed
-
Medium
-
1.3.1
Happened while running an export (HTML) on the doc. space on c.a.c..
Cause:
java.io.IOException: Too many open files
This seems to be because we open file input streams, but don't close them!
An example is:
FileUtils.copyFile(new FileInputStream(attachmentFile), new File(folder.getAbsolutePath() + "/" + attachmentFile.getParentFile().getName()));
AbstractRendererExporterImpl:147
In general, when you don't explicitly close the inputstream, then you will have a file handle leak until the object gets garbage collected.
Searching for all uses of 'FileInputStream' should be able to show which ones aren't closed
Verified that fewer than 2000 files can be open concurrently on Windows. Created space with 2500 pages, each with two attachments, one an image which appeared twice in the apge, once thumbnailed.
Able to export this space as HTML, PDF and XML.