Download Percona-Server-8.0.27-18-Linux.x86_64.glibc2.17-minimal.tar.gz from percona.com,
there are serious memory leak with lot’s of monitor.
there is jemalloc under Percona-Server-8.0.27/lib/mysql/lib/libjemalloc.so.1 by default and percona use it by default, I am not sure the version of this jemalloc, but mysql run out memory after startup one day.
I download source jemalloc-5.2.1 from official website, change LD_PRELOAD variable and deleted percona default jemalloc, everything goes well now.
Hello @azuryy,
I checked with our engineering software team on this and there isn’t any other reports of memory leaks. Do you have any sort of performance analysis from PMM during your leak that you can share?
I think it might be related, I have experienced (on multiple servers) memory leaks, but more specifically on INSERT actions. The time it usually took to synchronise a database from MS access to Percona MySQL has gone up 10 fold. I’ve worked with the developers of the synchronisation software, but the problem seems not to be there, but mainly on the INSERT actions.
@kalahariresearch,
There can be many reasons why you are experiencing poor INSERT performance. What we really need to see if performance graphs from MySQL and the OS while you are seeing issues in order to determine the root cause.
@matthewb
Please see below.
I’ll also post my mysql config, the weird thing is that without changing anything, the performance dropped after the update.
I don’t have perf analysis now, but I remember clearly is that, command ‘free -m’ to see, available memory only 600MB+(innodb buffer pool 96GB) after running mysqld 10 hours, and during these 10 hours, I’ve noticed the system memory was consumed increasingly.
I only do the following:
download jemalloc-5.2.1 source code and compile/install it to /usr/lib/.
stop mysqld
delete $Percona/lib/mysql/lib/libjemalloc.so.1
export LD_PRELOAD to /usr/lib/libjemalloc.so.2
then, using ‘free -m’ command to check system memory consuming, it’s normal(avalable memory 87G) after running mysqld 10 hours.
Your config looks very normal. Unfortunately, your performance charts don’t show anything related to memory usage of the OS. I can see many other things in your top screenshot (php, postgresql, nodejs, etc) All of those are competing with MySQL for memory. You may not be seeing a leak, you may just be seeing competition for memory. Increase the amount of memory on the OS by 4-6GB and see if this is still an issue.