Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4748

Make Felix Resolver Threads configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.2, 4.2.0.M1
    • None
    • None

    Description

      It was requested in https://issues.apache.org/jira/browse/FELIX-5247 to make the resolver threads configurable to avoid creating many threads by karaf.
      It turns out Felix already has that feature, but Karaf is not using it:

      https://github.com/apache/karaf/blob/karaf-4.0.x/features/core/src/main/java/org/apache/karaf/features/internal/osgi/Activator.java#L119

      Resolver resolver = new ResolverImpl(new Logger(Logger.LOG_INFO));

      I propose to configure and supply an Executor with the desired threads. As additional up, this prevents situations where there are unnecessary threads created.

      Attachments

        1. Screen Shot 2016-10-03 at 20.13.47.png
          223 kB
          Fabian Lange
        2. Screen Shot 2016-10-04 at 09.25.48.png
          189 kB
          Fabian Lange
        3. Screen Shot 2016-10-04 at 09.26.04.png
          186 kB
          Fabian Lange
        4. Screen Shot 2016-10-04 at 09.26.17.png
          189 kB
          Fabian Lange
        5. Screen Shot 2016-10-04 at 09.27.45.png
          66 kB
          Fabian Lange
        6. Screen Shot 2016-10-04 at 09.28.20.png
          72 kB
          Fabian Lange
        7. Screen Shot 2016-10-04 at 09.28.50.png
          66 kB
          Fabian Lange
        8. Screen Shot 2016-10-04 at 09.30.14.png
          62 kB
          Fabian Lange
        9. Screen Shot 2016-10-04 at 09.31.16.png
          48 kB
          Fabian Lange
        10. Screen Shot 2016-10-04 at 11.54.19.png
          129 kB
          Fabian Lange

        Issue Links

          Activity

            People

              fabianlange Fabian Lange
              fabianlange Fabian Lange
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: