MySQL - 系统表 - sys

MySQL
8开始有sys DB,可以帮助DBA和开发人员 收集Performance Schema的数据。可用于调优和诊断。

  1. Views that summarize Performance Schema data into more easily understandable form.
  2. Stored procedures that perform operations such as Performance Schema configuration and generating diagnostic reports.
  3. Stored functions that query Performance Schema configuration and provide formatting services.

host_summary
summarize statement activity, file I/O, and connections, grouped by host.

host_summary_by_file_io
summarize file I/O, grouped by host. By default, rows are sorted by descending total file I/O latency.

host_summary_by_file_io_type
summarize file I/O, grouped by host and event type. By default, rows are sorted by host and descending total I/O latency.

host_summary_by_stages
summarize statement stages, grouped by host. By default, rows are sorted by host and descending total latency.

host_summary_by_statement_latency
summarize overall statement statistics, grouped by host. By default, rows are sorted by descending total latency.

host_summary_by_statement_type
summarize informaion about statements executed, grouped by host and statement type. By default, rows are sorted by host and descending total latency.

innodb_buffer_stats_by_schema
summarize the information in the INFORMATION_SCHEMA INNODB_BUFFER_PAGE table, grouped by schema. By default, rows are sorted by descending buffer size.

innodb_buffer_stats_by_table
summarize the information in the INFORMATION_SCHEMA INNODB_BUFFER_PAGE table, grouped by schema and table. By default, rows are sorted by descending buffer size.

innodb_lock_waits
summarize the InnoDB locks that transactions are waiting for. By default, rows are sorted by descending lock age.

io_by_thread_by_latency
summarize I/O consumers to display time waiting for I/O, grouped by thread. By default, rows are sorted by descending total I/O latency.

io_global_by_file_by_bytes
summarize global I/O consumers to display amount of I/O, grouped by file. By default, rows are sorted by descending total I/O (bytes read and written).

io_global_by_file_by_latency
summarize global I/O consumers to display time waiting for I/O, grouped by file. By default, rows are sorted by descending total latency.

io_global_by_wait_by_bytes
summarize global I/O consumers to display amount of I/O and time waiting for I/O, grouped by event. By default, rows are sorted by descending total I/O (bytes read and written).

io_global_by_wait_by_latency
summarize global I/O consumers to display amount of I/O and time waiting for I/O, grouped by event. By default, rows are sorted by descending total latency.

latest_file_io
summarize file I/O activity, grouped by file and thread. By default, rows are sorted with most recent I/O first.

memory_by_host_by_current_bytes
summarize memory use, grouped by host. By default, rows are sorted by descending amount of memory used.

memory_by_thread_by_current_bytes
summarize memory use, grouped by thread. By default, rows are sorted by descending amount of memory used.

memory_by_user_by_current_bytes
summarize memory use, grouped by user. By default, rows are sorted by descending amount of memory used.

memory_global_by_current_bytes
summarize memory use, grouped by allocation type (that is, by event). By default, rows are sorted by descending amount of memory used.

memory_global_total
summarize total memory use within the server.

metrics
summarizes MySQL server metrics to show variable names, values, types, and whether they are enabled. By default, rows are sorted by variable type and name.

processlist
summarize processlist information. They provide more complete information than the SHOW PROCESSLIST statement and the INFORMATION_SCHEMA PROCESSLIST table, and are also nonblocking. By default, rows are sorted by descending process time and descending wait time.

ps_check_lost_instrumentation
information about lost Performance Schema instruments, to indicate whether the Performance Schema is unable to monitor all runtime data.

schema_auto_increment_columns
indicates which tables have AUTO_INCREMENT columns and provides information about those columns, such as the current and maximum column values and the usage ratio (ratio of used to possible values).

schema_index_statistics
index statistics

schema_object_overview
summarizes the types of objects within each schema.

schema_redundant_indexes
displays indexes that duplicate other indexes or are made redundant by them.

schema_table_lock_waits
display which sessions are blocked waiting on metadata locks, and what is blocking them.

schema_table_statistics
summarize table statistics.

schema_table_statistics_with_buffer
summarize table statistics, including InnoDB buffer pool statistics

schema_tables_with_full_table_scans
display which tables are being accessed with full table scans.

schema_unused_indexes
display indexes for which there are no events, which indicates that they are not being used.

session
similar to processlist and x$processlist, but they filter out background processes to display only user sessions.

session_ssl_status
For each connection, this view displays the SSL version, cipher, and count of reused SSL sessions.

statement_analysis
list normalized statements with aggregated statistics. The content mimics the MySQL Enterprise Monitor Query Analysis view.

statements_with_errors_or_warnings
display normalized statements that have produced errors or warnings.

statements_with_full_table_scans
display normalized statements that have done full table scans

statements_with_runtimes_in_95th_percentile
list statements with runtimes in the 95th percentile.

statements_with_sorting
list normalized statements that have performed sorts

statements_with_temp_tables
list normalized statements that have used temporary tables.

sys_config
contains sys schema configuration options, one row per option. Configuration changes made by updating this table persist across client sessions and server restarts.

user_summary
summarize statement activity, file I/O, and connections, grouped by user

user_summary_by_file_io
summarize file I/O, grouped by user.

user_summary_by_file_io_type
summarize file I/O, grouped by user and event type

user_summary_by_stages
summarize stages, grouped by user.

user_summary_by_statement_latency
summarize overall statement statistics, grouped by user. By default, rows are sorted by descending total latency.

user_summary_by_statement_type
summarize informaion about statements executed, grouped by user and statement type.

version
current sys schema and MySQL server versions.

wait_classes_global_by_avg_latency
summarize wait class average latencies, grouped by event class

wait_classes_global_by_latency
summarize wait class total latencies, grouped by event class.

waits_by_host_by_latency
summarize wait events, grouped by host and event.

waits_by_user_by_latency
views summarize wait events, grouped by user and event.

waits_global_by_latency
summarize wait events, grouped by event.

x$host_summary
summarize statement activity, file I/O, and connections, grouped by host.

x$host_summary_by_file_io
summarize file I/O, grouped by host. By default, rows are sorted by descending total file I/O latency.

x$host_summary_by_file_io_type
summarize file I/O, grouped by host and event type. By default, rows are sorted by host and descending total I/O latency.

x$host_summary_by_stages
summarize statement stages, grouped by host. By default, rows are sorted by host and descending total latency.

x$host_summary_by_statement_latency
summarize overall statement statistics, grouped by host. By default, rows are sorted by descending total latency.

x$host_summary_by_statement_type
summarize informaion about statements executed, grouped by host and statement type. By default, rows are sorted by host and descending total latency.

x$innodb_buffer_stats_by_schema
summarize the information in the INFORMATION_SCHEMA INNODB_BUFFER_PAGE table, grouped by schema. By default, rows are sorted by descending buffer size.

x$innodb_buffer_stats_by_table
summarize the information in the INFORMATION_SCHEMA INNODB_BUFFER_PAGE table, grouped by schema and table. By default, rows are sorted by descending buffer size.

x$innodb_lock_waits
summarize the InnoDB locks that transactions are waiting for. By default, rows are sorted by descending lock age.

x$io_by_thread_by_latency
summarize I/O consumers to display time waiting for I/O, grouped by thread. By default, rows are sorted by descending total I/O latency.

x$io_global_by_file_by_bytes
summarize global I/O consumers to display amount of I/O, grouped by file. By default, rows are sorted by descending total I/O (bytes read and written).

x$io_global_by_file_by_latency
summarize global I/O consumers to display time waiting for I/O, grouped by file. By default, rows are sorted by descending total latency.

x$io_global_by_wait_by_bytes
summarize global I/O consumers to display amount of I/O and time waiting for I/O, grouped by event. By default, rows are sorted by descending total I/O (bytes read and written).

x$io_global_by_wait_by_latency
summarize global I/O consumers to display amount of I/O and time waiting for I/O, grouped by event. By default, rows are sorted by descending total latency.

x$latest_file_io
summarize file I/O activity, grouped by file and thread. By default, rows are sorted with most recent I/O first.

x$memory_by_host_by_current_bytes
summarize memory use, grouped by host. By default, rows are sorted by descending amount of memory used.

x$memory_by_thread_by_current_bytes
summarize memory use, grouped by thread. By default, rows are sorted by descending amount of memory used.

x$memory_by_user_by_current_bytes
summarize memory use, grouped by user. By default, rows are sorted by descending amount of memory used.

x$memory_global_by_current_bytes
summarize memory use, grouped by allocation type (that is, by event). By default, rows are sorted by descending amount of memory used.

x$memory_global_total
summarize total memory use within the server.

x$processlist
summarize processlist information. They provide more complete information than the SHOW PROCESSLIST statement and the INFORMATION_SCHEMA PROCESSLIST table, and are also nonblocking. By default, rows are sorted by descending process time and descending wait time.

x$ps_digest_95th_percentile_by_avg_us

x$ps_digest_avg_latency_distribution

x$ps_schema_table_statistics_io

x$schema_flattened_keys
a helper view for schema_redundant_indexes.

x$schema_index_statistics
index statistics

x$schema_table_lock_waits
display which sessions are blocked waiting on metadata locks, and what is blocking them.

x$schema_table_statistics
summarize table statistics.

x$schema_table_statistics_with_buffer
summarize table statistics, including InnoDB buffer pool statistics

x$schema_tables_with_full_table_scans
display which tables are being accessed with full table scans.

x s e s s i o n s i m i l a r t o p r o c e s s l i s t a n d x session similar to processlist and x processlist, but they filter out background processes to display only user sessions.

x$statement_analysis
list normalized statements with aggregated statistics. The content mimics the MySQL Enterprise Monitor Query Analysis view.

x$statements_with_errors_or_warnings
display normalized statements that have produced errors or warnings.

x$statements_with_full_table_scans
display normalized statements that have done full table scans

x$statements_with_runtimes_in_95th_percentile
list statements with runtimes in the 95th percentile.

x$statements_with_sorting
list normalized statements that have performed sorts

x$statements_with_temp_tables
list normalized statements that have used temporary tables.

x$user_summary
summarize statement activity, file I/O, and connections, grouped by user

x$user_summary_by_file_io
summarize file I/O, grouped by user.

x$user_summary_by_file_io_type
summarize file I/O, grouped by user and event type

x$user_summary_by_stages
summarize stages, grouped by user.

x$user_summary_by_statement_latency
summarize overall statement statistics, grouped by user. By default, rows are sorted by descending total latency.

x$user_summary_by_statement_type
summarize informaion about statements executed, grouped by user and statement type.

x$wait_classes_global_by_avg_latency
summarize wait class average latencies, grouped by event class

x$wait_classes_global_by_latency
summarize wait class total latencies, grouped by event class.

x$waits_by_host_by_latency
summarize wait events, grouped by host and event.

x$waits_by_user_by_latency
views summarize wait events, grouped by user and event.

x$waits_global_by_latency
summarize wait events, grouped by event.

发布了213 篇原创文章 · 获赞 7 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/chuckchen1222/article/details/101202605
sys