Bug #100704 | Potential memory leak in MySQL 8.0.19 + 8.0.20 + 8.0.21 | ||
---|---|---|---|
Submitted: | 1 Sep 2020 9:51 | Modified: | 24 Sep 2020 12:36 |
Reporter: | NC NC | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 8.0.21 | OS: | CentOS (8.1.1911) |
Assigned to: | CPU Architecture: | x86 |
[1 Sep 2020 9:51]
NC NC
[1 Sep 2020 9:52]
NC NC
Our complete analysis
Attachment: mysql_full_analysis.txt (text/plain), 138.88 KiB.
[8 Sep 2020 3:20]
Masaksazu Shiobara
I had a similar problem with CentOS 8.1.1911 and MySQL 8.0.21. But I resolve my problem by using tcmalloc. https://dev.mysql.com/doc/refman/8.0/en/mysqld-safe.html#option_mysqld_safe_malloc-lib Please try it.
[9 Sep 2020 3:53]
jingbo zhao
Have you use the event scheduler? We use the event scheduler have caused memory leak.
[24 Sep 2020 12:36]
MySQL Verification Team
Hi Mr. NC, Thank you for your bug report. However, this is not a bug. Simply, you have some buffers that are too large, while these buffers are allocated for each thread that needs that infrastructure. Hence, for example 10 threads needing 1 Gb, means that only for that one thread buffer you are using 10 Gb. This is all explained in our Reference Manual, where you can also find which buffers are local and which are thread specific. Next, you are using Linux and its default malloc library tends to keep memory attached to the process that consumes most of it. This can be tuned out, or even better improved by changing a malloc library and there are several available. In short: Not A Bug.