Bug #92508 | mysql-connector in bootclasspath causing memory leak | ||
---|---|---|---|
Submitted: | 19 Sep 2018 16:05 | Modified: | 5 Dec 2018 18:57 |
Reporter: | Bernhard Lenz | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 8.0.12 | OS: | Any |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
Tags: | AbandonedConnectionCleanupThread, connectionPhantomRefs, memory leak |
[19 Sep 2018 16:05]
Bernhard Lenz
[4 Oct 2018 16:28]
Filipe Silva
Hi Bernhard, Thank you for this bug report. It was verified as described.
[5 Dec 2018 18:57]
Daniel So
Posted by developer: Added the following entry to the Connector/J 8.0.14 and 5.1.48 changelogs: "A memory leak occurred if Connector/J was loaded via the bootstrap class path instead of the main application classpath. It was because AbandonedConnectionCleanupThread failed to initialize its internal thread in that case, so that references for closed connections were not cleaned up, and their number kept growing. This fix repairs the clean up process for closed connections and also makes the process thread safe."