felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-3071) [Framework] It should be possible to limit number of open JAR files
Date Mon, 08 Aug 2011 03:29:27 GMT
[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

        

Mime
View raw message