[
https://jira.duraspace.org/browse/DS-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18245#action_18245
]
Gareth Waller commented on DS-755:
----------------------------------
Hi Robin,
I've modified your patch slightly to also close the output stream and catch any
IOException that is thrown - not sure what good it will do to let this
propagate up to Cocoon.
I've tested the code on the latest build of the trunk (checked out today) and
it fixes the leak.
Cheers
Gareth
> BitstreamReader file descriptor leak
> ------------------------------------
>
> Key: DS-755
> URL: https://jira.duraspace.org/browse/DS-755
> Project: DSpace
> Issue Type: Bug
> Components: XMLUI
> Affects Versions: 1.5.2, 1.6.2
> Reporter: Gareth Waller
> Assignee: Robin Taylor
> Priority: Major
> Attachments: BitstreamReader-1.patch, BitstreamReader.java
>
>
> The BitstreamReader class opens a file descriptor to a bitstream via a call
> to "retrieve()" (line 325) but this file descriptor is never closed thereby
> causing a leak.
> This can be replicated by clicking on the View/Download links in the item
> landing pages and constantly checking the open file descriptors on the
> server. The result of this means that the max process limit for open file
> descriptors can be met if the service is under heavy load.
> This has been observed in v1.5.2 and the code looks to be the same in v1.6.2.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel