Skip to content

MonitorConnectionContext queue cause memory leak #412

Closed
@YoungHu

Description

@YoungHu

Describe the bug

AT 1.1.5+ version, in Monitor class, Queue<MonitorConnectionContext> just have add in startMonitoring and run method, no remove in stopMonitoring method, this will cause memory leak.
we can see 1.14 have remove action but missing in 1.1.5. maybe code lost at this version.

Expected Behavior

remove unused MonitorConnectionContext in queue.

Current Behavior

no remove action. dump file can see lots of MonitorConnectionContext instance。
image

Reproduction Steps

integrate aws driver and run application monitor the class instance

Possible Solution

No response

Additional Information/Context

No response

The AWS JDBC Driver for MySQL version used

1.1.7

JDK version used

JDK8

Operating System and version

Linux

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions