You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Wouter Born (Jira)" <ji...@apache.org> on 2020/04/28 14:31:00 UTC
[jira] [Created] (KARAF-6697) karaf-maven-plugin verify goal leaks
threads
Wouter Born created KARAF-6697:
----------------------------------
Summary: karaf-maven-plugin verify goal leaks threads
Key: KARAF-6697
URL: https://issues.apache.org/jira/browse/KARAF-6697
Project: Karaf
Issue Type: Bug
Components: karaf
Affects Versions: 4.2.8, 4.2.7
Reporter: Wouter Born
Attachments: karaf-no-threads-leak.png, karaf-threads-leak.png
We use the verify goal of the karaf-maven-plugin to verify 200+ features in our openHAB add-ons build (see [pom.xml|https://github.com/openhab/openhab-addons/blob/2.5.x/bundles/pom.xml]).
When monitoring the build using [VisualVM|https://visualvm.github.io/] the live thread counts keep increasing each time the verify goal is executed.
It increases to ~2000 threads after invoking the goal 200+ times:
!karaf-threads-leak.png!
When the [plugin|https://github.com/openhab/openhab-addons/blob/65eff40dba68a346845f4c69db495bed2086b05f/bundles/pom.xml#L399-L402] is removed from the build everything returns to normal:
!karaf-no-threads-leak.png!
To reproduce it on our code:
# {{git clone -b 2.5.x --single-branch git@github.com:openhab/openhab-addons.git}}
# {{cd openhab-addons}}
# {{mvn clean install -DskipChecks -DskipTests}}
# Monitor the live thread counts using a tool like VisualVM
I also tested the 4.2.8 version of the plugin but it was still leaking threads.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)