Open Bobzemob opened 1 month ago
Hi, we are working on MongoDB memory leak. Regarding MariaDB we need to investigate cause of that problem.
This is a major issue for us, causing multiple replicaset members to crash. We had to stop pmm-agent on all of our mongodb replicaset servers due to this bug.
Also seeing this on MariaDB
@wreiske we are fixing issue with Mongodb in 2.43.2 and releasing it today. Please recheck MariaDB after upgrade. If problem persists, please create a task in our jira.percona.com.
Get:3 http://repo.percona.com/percona/apt bullseye/main amd64 pmm2-client amd64 2.42.0-6.bullseye [88.0 MB]
Just ran an apt update, still latest available is:
pmm-agent --version
ProjectName: pmm-agent
Version: 2.42.0
PMMVersion: 2.42.0
Timestamp: 2024-06-06 15:28:56 (UTC)
FullCommit: 74e57527735bd062c4bd37adbd89c31bb14ebc15
I'll check back later today.
Description
MongoDB
pmm-agent.service on MongoDB cluster opened 40,000+ pages, causing MongoDB to crash with
Too many open files
error. This behavior occured on a MongoDB server cluster running version6.0.18
.MariaDB
The pmm-agent.service on several MariaDB servers caused errors that coincided with the MySQL process grabbing multiple GB of memory and not releasing it until the MySQL process was restarted. After the MySQL process was restarted, the memory grabbing behavior continued on severs that had the pmm-agent.service active and stopped on the ones that had it disabled. (See logs below) Affected servers were using MariaDB version
10.3.39
.Expected Results
Expected pmm agent to not cause crashing/memory leaks.
Actual Results
PMM agent opened too many pages on MongoDB servers causing the MongoDB process to crash. Disabling pmm-agent caused the number of open pages to drop from 40,000+ to around 500.
PMM agent caused MariaDB to allocate multiple GBs of memory and not releasing said memory, eventually leading to a crash. Disabling the pmm-agent service stopped this behavior from occurring.
Version
PMM Server
2.43.1
PMM Agent2.43.1-6
Steps to reproduce
No response
Relevant logs
Code of Conduct