Bug 1129091

Summary: [mysql] The bundled JDBC driver leaks classloaders
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: PluginsAssignee: Nobody <nobody>
Status: ON_QA --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.13CC: hrupp
Target Milestone: ---   
Target Release: RHQ 4.13   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Lukas Krejci 2014-08-12 08:43:05 UTC
Description of problem:
In the RHQ's mysql plugin we bundle the mysql-connector-java JDBC driver in version 5.1.6.

That version has a known classloader leak that leads to eventual permgen depletion over several restarts of plugin container in the RHQ's agent.

Version-Release number of selected component (if applicable):
4.13.0-SNAPSHOT

How reproducible:
always

Steps to Reproduce:
1. Make sure MySQL plugin is enabled and deployed to RHQ agent
2. Start a MySQL server on a box with RHQ agent
3. restart the plugin container (without fully restarting the whole RHQ agent) a couple of times (> 20).

Actual results:
OOME

Expected results:
No exceptions

Additional info:

The mysql-connector-java is currently at version 5.1.32, so it's probably time we upgraded to a more recent version.

Comment 1 Lukas Krejci 2014-08-12 14:40:15 UTC
For reference, the bug in the mysql jdbc driver is captured here: http://bugs.mysql.com/bug.php?id=36565

Comment 2 Lukas Krejci 2014-08-12 14:49:01 UTC
commit 0e276ede93e672ff1efc243ea1f0bd8d0feb83ba
Author: Lukas Krejci <lkrejci>
Date:   Tue Aug 12 16:41:54 2014 +0200

    [BZ 1129091] Upgrade the bundled MySQL JDBC driver to a newer version.