Performance Schema has been with us for a while now. Over the
years, it has gone a long way from being a curiosity disabled by
default to becoming a sophisticated diagnostic tool you may want
to enable permanently in your production database.
MySQL 5.7 introduced some exciting Performance Schema features
and the first one I'm going to look at is the instrumentation for
server memory usage. Have I Got Data For You MySQL 5.7.9 (GA)
supports the following memory summary tables (per documentation) that let you look at server
memory usage from different angles:
- "memory_summary_by_account_by_event_name" summarizes events for a given account.
- "memory_summary_by_host_by_event_name" summarizes events for a given host.
- "memory_summary_by_thread_by_event_name" summarizes events for a given thread and event name. …