An Azure managed MySQL database service for app development and deployment.
Hello Matt Monk,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having Azure Flexible Server Memory issues.
The memory escalation you are experiencing on Azure Database for MySQL Flexible Server is not tied to MySQL configuration, workload, or server sizing but instead matches a platform‑level memory regression introduced after recent Azure maintenance. Azure’s architecture shows that memory usage includes OS services and Azure agents, which can grow independently of MySQL engine allocations, making the plateau you expect impossible when a leak exists. This behavior requires backend engineering diagnostics because these host‑level components are inaccessible to customers. - https://learn.microsoft.com/azure/mysql/flexible-server/how-to-troubleshoot-low-memory-issues
To validate that MySQL itself is not responsible, you can query real engine‑level allocation using the sys.memory_global_by_current_bytes view, which isolates InnoDB and per‑component memory from platform processes.
SELECT * FROM sys.memory_global_by_current_bytes
ORDER BY current_allocated DESC;
This aligns with Azure’s documented monitoring practices that distinguish internal MySQL memory from system‑level consumption. You should request engineering review for potential memory fragmentation, agent growth, or allocator regressions at the OS layer. - https://stackoverflow.com/questions/76303522/azure-mysql-server-out-of-memory-issues
While awaiting engineering intervention, configure automated restarts triggered by Host Memory Percent metrics to prevent operational disruption, and temporarily reduce maximum connections to minimize per‑connection memory pressure noted in Azure’s performance guidelines. These mitigations ensure stability until Azure resolves the underlying platform leak. For memory tuning, architectural behavior, and best practices, refer to the Microsoft Tech Community guide on Flexible Server memory management: Memory Tuning for Workloads in PostgreSQL Flexible Server.
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.