Bug 1129091 - [mysql] The bundled JDBC driver leaks classloaders
Summary: [mysql] The bundled JDBC driver leaks classloaders
Status: ON_QA
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.13
Hardware: Unspecified
OS: Unspecified
unspecified vote
Target Milestone: ---
: RHQ 4.13
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
Depends On:
TreeView+ depends on / blocked
Reported: 2014-08-12 08:43 UTC by Lukas Krejci
Modified: 2014-08-12 14:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

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):

How reproducible:

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:

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@redhat.com>
Date:   Tue Aug 12 16:41:54 2014 +0200

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

Note You need to log in before you can comment on or make changes to this bug.