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

karaf-maven-plugin verify goal leaks threads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.7, 4.2.8
    • 4.2.17, 4.4.3, 4.3.9
    • karaf
    • None

    Description

      We use the verify goal of the karaf-maven-plugin to verify 200+ features in our openHAB add-ons build (see pom.xml).

      When monitoring the build using VisualVM the live thread counts keep increasing each time the verify goal is executed.

      It increases to ~2000 threads after invoking the goal 200+ times:

       

       

      When the plugin is removed from the build everything returns to normal (this was a full build with tests):

       

       

      To reproduce it on our code:

      1. git clone -b 2.5.x --single-branch git@github.com:openhab/openhab-addons.git
      2. cd openhab-addons
      3. mvn clean install -DskipChecks -DskipTests
      4. Monitor the live thread counts using a tool like VisualVM

      When re-running the same build without Karaf feature validation, VisualVM will show that the live thread counts peak at 20 instead:

      1. mvn clean install -DskipChecks -DskipTests -Dfeatures.verify.skip=true

      I also tested the 4.2.8 version of the plugin but it was still leaking threads.

      Attachments

        1. karaf-no-threads-leak.png
          95 kB
          Wouter Born
        2. karaf-threads-leak.png
          109 kB
          Wouter Born

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            wborn Wouter Born
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: