Bug 1077943
Summary: | [AS7] plugin's connection cleaner leaks classloader | |||
---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> | |
Component: | Plugin -- JBoss EAP 6 | Assignee: | Lukas Krejci <lkrejci> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Filip Brychta <fbrychta> | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | JON 3.1.2, JON 3.2 | CC: | jshaughn, lkrejci, mkoci, myarboro, rhatlapa | |
Target Milestone: | ER03 | Keywords: | Regression, TestCaseNeeded | |
Target Release: | JON 3.3.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
The ASConnection of the EAP plug-in has a static thread pool which runs connection "cleaners" to prevent connection leakage.
When the plug-in container was restarted, the classes of the plug-in were loaded again. However the static thread pool was never shut down which left a thread running with a context classloader from the previous plug-in container.
The stale thread lead to an eventual out-of-memory exception because of depleted permgen memory needed to hold all the classes from all the plug-in container runs in the agent's lifetime.
The AS7 plug-in now has a plug-in lifecycle listener that shuts down the aforementioned thread pool preventing the leak from happening.
|
Story Points: | --- | |
Clone Of: | 1076258 | |||
: | 1079070 1119516 (view as bug list) | Environment: | ||
Last Closed: | 2014-12-11 13:59:15 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1076258, 1119516 | |||
Bug Blocks: | 1079070, 1145561 |
Description
Larry O'Leary
2014-03-18 23:19:00 UTC
Moving to ON_QA as available to test with brew build of DR01: https://brewweb.devel.redhat.com//buildinfo?buildID=373993 BZ 1119516 is ON_QA, so this can, too, be retested. Moving to ON_QA again. After repeatedly restarting the plugin container the PermGen used memory keeps growing, thus the class loader leak is still visible. After consulting this issue with devs it seems that the problem might not be specifically in EAP's classloader but rather in other component. The issue is covered by BZ 1134902, thus adding 'depends on' flag. Verified on Version : 3.3.0.ER03 Build Number : 4aefe39:44e33a4 Scenario: 1- AS7 is in inventory 2- schedule agent operation "Restart Plugin Container" each 2 minutes Result: After 6 hours which corresponds to ~ 180 Plugin container restarts is the perm gen still stable This verifies leaks in AS7 plugin. There are other leaks which are covered by bz 1134902 *** Bug 1119516 has been marked as a duplicate of this bug. *** |