[MDEV-24299] mariadb 100% memory consumption crashes mysqld Created: 2020-11-27 Updated: 2020-12-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.4.17 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Thies Meincke | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
SLES 12SP5 with Mariadb repo https://yum.mariadb.org/10.4/sles/12/x86_64 |
||
| Attachments: |
|
| Description |
|
Dumps on a SLES-mariadb-slave server use all available Memory+Swap. OS finally kills mysqld: OS: SLES 12.5 with 32 GB RAM + 2 GB swap After restart a dump of a 60 GB database with InnoDb-Tables claims all memory within minutes. It is not freed after the dump has finished. The next dump of a database (500MB) with MyIsam and 20.000 tables crashes mysqld with a good chance. Some configuration parameters:
Status data around crash time:
|
| Comments |
| Comment by Marko Mäkelä [ 2020-11-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Can you provide any more information on what could have consumed the memory? If this is repeatable, then I would suggest running http://poormansprofiler.org/ or sudo perf top while the server is in the process of consuming the memory, to see what is causing the consumption. If it is a slower memory leak, then it might be useful to try tcmalloc and https://gperftools.github.io/gperftools/heapprofile.html (or similar tools in jemalloc or the libc of your choice). The stack traces could also confirm whether this could in any way be related to | ||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2020-11-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Is the binlog_format, statement, row or mixed? 28G of buffer pool on a 32G machine is a touch tight. What are your innodb buffer pool stats for non-mysqldump operations? Did it not run out of memory in a previous mariadb version with the same configuration? | ||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thies Meincke [ 2020-11-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||
|
binlog_format mixed
Slave Server after Restart and dump of the largest database (60 GB):
http://poormansprofiler.org/ or jemalloc or different libc are no choice currently. mysqld is from the binary package for SLES 12 and not compiled locally with debug symbols. 2 gstack outputs and perftop output are attached. gstack.out.gz |