Documentation Home
MySQL Performance Schema
Related Documentation Download this Excerpt
PDF (US Ltr) - 1.2Mb
PDF (A4) - 1.2Mb


MySQL Performance Schema  /  Performance Schema Table Descriptions

Chapter 10 Performance Schema Table Descriptions

Table of Contents

10.1 Performance Schema Table Reference
10.2 Performance Schema Setup Tables
10.2.1 The setup_actors Table
10.2.2 The setup_consumers Table
10.2.3 The setup_instruments Table
10.2.4 The setup_objects Table
10.2.5 The setup_threads Table
10.3 Performance Schema Instance Tables
10.3.1 The cond_instances Table
10.3.2 The file_instances Table
10.3.3 The mutex_instances Table
10.3.4 The rwlock_instances Table
10.3.5 The socket_instances Table
10.4 Performance Schema Wait Event Tables
10.4.1 The events_waits_current Table
10.4.2 The events_waits_history Table
10.4.3 The events_waits_history_long Table
10.5 Performance Schema Stage Event Tables
10.5.1 The events_stages_current Table
10.5.2 The events_stages_history Table
10.5.3 The events_stages_history_long Table
10.6 Performance Schema Statement Event Tables
10.6.1 The events_statements_current Table
10.6.2 The events_statements_history Table
10.6.3 The events_statements_history_long Table
10.6.4 The prepared_statements_instances Table
10.7 Performance Schema Transaction Tables
10.7.1 The events_transactions_current Table
10.7.2 The events_transactions_history Table
10.7.3 The events_transactions_history_long Table
10.8 Performance Schema Connection Tables
10.8.1 The accounts Table
10.8.2 The hosts Table
10.8.3 The users Table
10.9 Performance Schema Connection Attribute Tables
10.9.1 The session_account_connect_attrs Table
10.9.2 The session_connect_attrs Table
10.10 Performance Schema User-Defined Variable Tables
10.11 Performance Schema Replication Tables
10.11.1 The replication_connection_configuration Table
10.11.2 The replication_connection_status Table
10.11.3 The replication_asynchronous_connection_failover Table
10.11.4 The replication_asynchronous_connection_failover_managed Table
10.11.5 The replication_applier_configuration Table
10.11.6 The replication_applier_status Table
10.11.7 The replication_applier_status_by_coordinator Table
10.11.8 The replication_applier_status_by_worker Table
10.11.9 The replication_applier_global_filters Table
10.11.10 The replication_applier_filters Table
10.11.11 The replication_group_members Table
10.11.12 The replication_group_member_stats Table
10.11.13 The replication_group_member_actions Table
10.11.14 The replication_group_configuration_version Table
10.11.15 The replication_group_communication_information Table
10.11.16 The binary_log_transaction_compression_stats Table
10.12 Performance Schema NDB Cluster Tables
10.12.1 The ndb_sync_pending_objects Table
10.12.2 The ndb_sync_excluded_objects Table
10.13 Performance Schema Lock Tables
10.13.1 The data_locks Table
10.13.2 The data_lock_waits Table
10.13.3 The metadata_locks Table
10.13.4 The table_handles Table
10.14 Performance Schema System Variable Tables
10.14.1 Performance Schema persisted_variables Table
10.14.2 Performance Schema variables_info Table
10.15 Performance Schema Status Variable Tables
10.16 Performance Schema Thread Pool Tables
10.16.1 The tp_thread_group_state Table
10.16.2 The tp_thread_group_stats Table
10.16.3 The tp_thread_state Table
10.17 Performance Schema Firewall Tables
10.17.1 The firewall_groups Table
10.17.2 The firewall_group_allowlist Table
10.17.3 The firewall_membership Table
10.18 Performance Schema Keyring Tables
10.18.1 The keyring_component_status Table
10.18.2 The keyring_keys table
10.19 Performance Schema Clone Tables
10.19.1 The clone_status Table
10.19.2 The clone_progress Table
10.20 Performance Schema Summary Tables
10.20.1 Wait Event Summary Tables
10.20.2 Stage Summary Tables
10.20.3 Statement Summary Tables
10.20.4 Statement Histogram Summary Tables
10.20.5 Transaction Summary Tables
10.20.6 Object Wait Summary Table
10.20.7 File I/O Summary Tables
10.20.8 Table I/O and Lock Wait Summary Tables
10.20.9 Socket Summary Tables
10.20.10 Memory Summary Tables
10.20.11 Error Summary Tables
10.20.12 Status Variable Summary Tables
10.21 Performance Schema Miscellaneous Tables
10.21.1 The component_scheduler_tasks Table
10.21.2 The error_log Table
10.21.3 The host_cache Table
10.21.4 The innodb_redo_log_files Table
10.21.5 The log_status Table
10.21.6 The performance_timers Table
10.21.7 The processlist Table
10.21.8 The threads Table
10.21.9 The tls_channel_status Table
10.21.10 The user_defined_functions Table

Tables in the performance_schema database can be grouped as follows:

  • Setup tables. These tables are used to configure and display monitoring characteristics.

  • Current events tables. The events_waits_current table contains the most recent event for each thread. Other similar tables contain current events at different levels of the event hierarchy: events_stages_current for stage events, events_statements_current for statement events, and events_transactions_current for transaction events.

  • History tables. These tables have the same structure as the current events tables, but contain more rows. For example, for wait events, events_waits_history table contains the most recent 10 events per thread. events_waits_history_long contains the most recent 10,000 events. Other similar tables exist for stage, statement, and transaction histories.

    To change the sizes of the history tables, set the appropriate system variables at server startup. For example, to set the sizes of the wait event history tables, set performance_schema_events_waits_history_size and performance_schema_events_waits_history_long_size.

  • Summary tables. These tables contain information aggregated over groups of events, including those that have been discarded from the history tables.

  • Instance tables. These tables document what types of objects are instrumented. An instrumented object, when used by the server, produces an event. These tables provide event names and explanatory notes or status information.

  • Miscellaneous tables. These do not fall into any of the other table groups.