[
https://issues.apache.org/jira/browse/FELIX-3071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091317#comment-13091317
]
Richard S. Hall commented on FELIX-3071:
----------------------------------------
I've implemented this, but I'm going to leave this issue open to see if we run
into any issues.
> [Framework] It should be possible to limit number of open JAR files
> -------------------------------------------------------------------
>
> Key: FELIX-3071
> URL: https://issues.apache.org/jira/browse/FELIX-3071
> Project: Felix
> Issue Type: Improvement
> Components: Framework
> Affects Versions: framework-3.2.2
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
> Fix For: framework-4.0.0
>
>
> Currently, the framework opens a ZipFile for each bundle JAR file and one for
> each embedded JAR file on a bundle's class path. Needless to say, if you have
> lots of bundles in your system, this can lead to lots of open files for the
> framework process. It should be possible to modify the framework to obey some
> limit on the number of open ZipFiles.
> A general approach would be to have a configurable limit and whenever the
> framework wanted to open another, if the limit was exceeded it would have to
> close a not recently used ZipFile. Theoretically, this shouldn't be too much
> of an issue for classes in particular, because once they are loaded they are
> cached in memory and it isn't necessary to go back to the disk.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira