Details
-
Bug
-
Resolution: Fixed
-
Low
-
2.7, 3.4.3
-
None
-
Standalone, on Tomcat 6.0 with JDK 1.6.0 on Linux
Description
I have a page with 1500+ attachments. Go to Tools -> Attachments and press "Download All" button beneath the attached files list. The operation fails with this error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.io.FileNotFoundException: /home/sven/.../my-attachment.pdf (Too many open files)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.<init>(FileOutputStream.java:179)
java.io.FileOutputStream.<init>(FileOutputStream.java:131)
com.atlassian.confluence.pages.actions.DownloadAllAttachmentsOnPageAction.execute(DownloadAllAttachmentsOnPageAction.java:41)
When I check the list of open files of Confluence process using 'lsof', I can see a long list of open file handles for attachment files.
Attachments
Issue Links
- is related to
-
CONFSERVER-21403 Attachment API leads to high risk of leaking file handles
- Closed