Skip to content

Memory leaks when upgrading from RDS MySQL 8.0.35 to 8.0.37

1

After upgrading from version 8.0.35 to 8.0.37 using blue-green deployment, we began to constantly consume available RAM, which directly impacts the amount of free memory the OS has. I am sharing a cloudwatch graph where this can be analyzed using the freeableMemory metric. Enter image description here

Parameter groups are the same as default.mysql8.0.

Now we are preparing a new bg-deployment from 8.0.37 to 8.0.39 to try to resolve this issue.

3 Answers
1
Accepted Answer

Hello,

I understand that you are facing memory leaks after upgrading from version 8.0.35 to 8.0.37 using blue-green deployment. This problem has been identified as a known bug within MySQL 8.0.37, which can impact the performance and stability.

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-38.html#mysqld-8-0-38-bug

To mitigate the issue, it is recommended to proceed with an upgrade to MySQL version 8.0.39. This version includes important bug fixes and optimisation that address the memory leak problem. Taking this step should help you avoid further complications and ensure that your database environment remains efficient.

AWS
answered a year ago
1

Hi,

It seems to be a known problem: https://stackoverflow.com/questions/78954783/mysql-8-0-37-caused-a-severe-memory-leak

This thread says that upgrade to 8.0.39 was the solution for them.

Best,

Didier

EXPERT
answered a year ago
0

After upgrading to 8.0.39 the issue was resolved.

answered a year ago
  • Hi, accepting your own answer doesn't bring you any additional credits. Accepting respondent's best answer gives her / him credit and motivates her / him to keep supporting users with questions like you. Best, Didier

  • Hi mdanieli20,

    We are encountering a similar memory leak issue after migrating to MySQL version 8.0.37.

    According to the release notes for version 8.0.38, it seems the memory leaks are associated with the Group Replication and Kerberos Authentication features:

    https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-38.html

    • Group Replication: Fixed a memory leak in /xcom/gcs_xcom_networking.cc. (Bug #36532199)
    • Kerberos Authentication: Resolved a memory leak observed when running authentication_kerberos under Valgrind. (Bug #34482788, Bug #36570929)

    However, we are not using either of these features in our RDS MySQL instance, yet we are still experiencing memory leak issues.

    Did you also encounter memory leaks of RDS MySQL 8.0.37 even when neither "Group Replication" nor "Kerberos Authentication" was in use?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.