Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3071

[Framework] It should be possible to limit number of open JAR files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-3.2.2
    • framework-4.0.0
    • Framework
    • None

    Description

      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.

      Attachments

        Activity

          People

            rickhall Richard S. Hall
            rickhall Richard S. Hall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: