Closed KrohnicDev closed 7 months ago
Hi @KrohnicDev
The issue has been fixed in version 2.3.4. We suggest you to upgrade to the latest version of the driver (that is version 2.3.5). https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/855
Thank you!
Thanks! We had to skip v2.3.4 due another issue, but v2.3.5 seems to work fine.
Describe the bug
We have noticed out of memory errors, and based on heap dump analysis it is due to efm2 plugin.
Also, we have set wrapperPlugins to
emf,failover
so we were quite suprised to see efm2 as the root cause of this problem.efm
classes are not visible in heap dump, so it seems that efm2 is used despite of configuration.Expected Behavior
Wrapper should work without memory leaks.
What plugins are used? What other connection properties were set?
Properties extracted from heap dump:
Current Behavior
Our application crashes to OOM errors. Based on heap dump analysis it is due to
efm2
plugin, which has a memory leak innewContexts
:Sounds a lot like https://github.com/awslabs/aws-advanced-jdbc-wrapper/issues/675, but different plugin.
Reproduction Steps
I don't have the exact reproduction steps.
Possible Solution
No response
Additional Information/Context
The memory leak was for the readonly connection pool (targeting RDS read endpoint). That's probably relevant, since it's also the only pool that gets these errors:
and warnings from HikariCP:
The AWS Advanced JDBC Driver version used
2.3.3
JDK version used
21
Operating System and version
AWS ECS Fargate