PlanetScale
PlanetScale logoPlanetScale · Feature trail

MySQL Memory Profiling

1 post · Apr 2024

What this trail covers

PlanetScale provides tools and techniques for profiling memory usage in MySQL queries. This includes leveraging the `performance_schema` to instrument various memory components and sampling memory usage at different granularities (global, by thread, by user, etc.). The post details how to identify memory-intensive operations like sorting and how to collect and visualize memory usage over time using custom scripts and libraries like Matplotlib. This capability helps users understand and optimize the memory footprint of their MySQL workloads.

All PlanetScale trails