.
.
.git/config2021-03-25 21:41:47
MariaDB
.git/config, 2021-03-25 21:41:47

Memory leak in mariadb?

Such a picture is observed. Very slowly, in small bursts, mariadb takes up more memory over several days.

605d79d6afacf239167645.png

uname -a
Linux mariadb 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux

mysql --version
mysql  Ver 15.1 Distrib 10.5.9-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

grep -v '^#' /etc/mysql/my.cnf

[client-server]

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/

[mysqld]                                                                                                                                                                                     
skip-name-resolve                                                                                                                                                                            
performance_schema = on  
innodb_print_all_deadlocks = on
innodb_buffer_pool_size = 512M
query_cache_type = 0
query_cache_size = 0
query_cache_limit = 0
key_buffer_size = 10M
max_allowed_packet = 2M


free -m
              total        used        free      shared  buff/cache   available
Mem:           1957         983          87          31         886         783
Swap:             0           0           0


The version is up to date. Of the settings from the default, only what was indicated above changed. After restarting the service, consumption always falls and then grows for several days until the next manual restart.
performance_schema turned off and it seemed that it helped, but in the end, memory consumption still slowly but surely grew.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2021-03-26
@vitaly_il1

- What happens if you do not restart?
- Do you use other engines besides InnoDB?
- Try running https://www.percona.com/doc/percona-toolkit/3.0/pt...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question