Bug 1129091 - [mysql] The bundled JDBC driver leaks classloaders
Summary: [mysql] The bundled JDBC driver leaks classloaders
Keywords:
Status: ON_QA
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.13
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.13
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-12 08:43 UTC by Lukas Krejci
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


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


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