-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MonitorConnectionContext queue cause memory leak #412
Comments
Hi @YoungHu, Thanks for reaching out and raising this issue. We'll take a look at this and keep you updated as we investigate. Thank you for your patience! |
Hi @YoungHu I saw your pull request and wanted to thank you for contributing! Before we get it approve and merge in, I'd just like to do some more testing on our side. Thank you! |
Hi @YoungHu I took a closer look at the I also tried reproduce a memory leak, but so far unable to. I was hoping you could you provide the following details?
Thank you for patience! |
Hi @aaronchung-bitquill
normally, |
Hi @YoungHu A few additional questions for the application that is experiencing this issue
Also, would u be able to enable driver logging and provide some driver logs? Thank you |
we are using Aurora MySQL 5.7 version,DB url is cluster endpoint |
Hi @YoungHu I suspect that it might be InterruptedException that is breaking the while loop in the If possible would you be able to provide driver logs of when the issue occurs? That would greatly help us be able to confirm the source of the issue. Otherwise, would you be willing to share a sample app that reproduces the issue? Thank you |
how to set logger? just like |
HI @YoungHu Apologies for the late reply. |
Hi @YoungHu I wanted to check in to see how things are going? Were you able to obtain driver logs? |
Hi @YoungHu We have not heard back from you for some time and wanted to check back in. If there are no further updates on this ticket in the next 3 days, we will close this ticket. However, if you require further assistance, you can reopen this issue, or create a new one. Thank you! |
Hi @YoungHu We will be closing this ticket now due to lack of updates. However, if you require further assistance, you can reopen this issue, or create a new one. Thank you! |
Hi @ftasso, Thank you for letting us know you've experienced this. Your screenshot indicates there are many objects in memory, but that may not necessarily mean those objects were leaked. Leaked objects are usually shown as a long uptrend line of consumed memory, would you be able to verify whether this was the case? Thank you! |
Hi @ftasso, Thanks for confirming that, we'll take another look at this and keep you updated as we investigate. Thank you for your patience! |
So, are you currently addressing this issue? What good temporary solutions do I have now? |
Hi @KerouacEZ, We have received similar reports on this issue for the AWS JDBC Driver. While we are still working on the root cause of the issue for both drivers, we have released a new version (v2.3.1) for the the AWS JDBC Driver that alleviates the issues you are seeing. Once we have a fix for the issue, we will make it available for both the AWS JDBC Driver and the AWS JDBC Driver for MySQL. In the meantime, we suggest that you try out the AWS JDBC Driver with the MySQL Connector/J as the underlying driver. There is a migration guide on moving from the AWS JDBC Driver for MySQL to the AWS JDBC Driver available here. |
Hi all, We've recently added an experimental Host Monitoring Plugin (PR #764) to the AWS JDBC Driver, called the Host Monitoring Plugin v2. More information can be found here. The Host Monitoring Plugin v2 is functionally equivalent to the Host Monitoring Plugin and they are configured using the same parameters. The Host Monitoring Plugin v2 was created to address the issues that you all have been experiencing, and it is meant to be a more stable version of the Host Monitoring Plugin. As it is currently an experimental plugin, please note that it should be tested before being used in a production environment. This plugin is not currently available on the AWS JDBC Driver for MySQL, but it can be tried out by using the snapshot build of the AWS JDBC Driver: Thank you! |
Hi all, the aforementioned experimental Host Monitoring Plugin v2 is now available on our latest release of the driver. It is currently an experimental plugin so please test it out before using it in a production environment. We will be closing this issue now, please don't hesitate to comment or open a new ticket if this issue persists with the experimental plugin or if you encounter any other issues. |
We've observed the same memory leak issue with aws-mysql-jdbc version 1.1.10. After upgrade to 1.1.12, we might not reproduce the memory leak anymore. Even when default settings are met or explicitly defined as:
-> It seems to be resolved in 1.1.12 with default settings. |
Describe the bug
AT 1.1.5+ version, in
Monitor
class,Queue<MonitorConnectionContext>
just haveadd
instartMonitoring
andrun
method, noremove
instopMonitoring
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。
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
The text was updated successfully, but these errors were encountered: