MySQL5.7 SYS Schema的效能框架檢視引數解釋

chenfeng發表於2017-03-16
1 host_summary 和 x$host_summary Views
檢視顯示了語句活動,檔案io和連線資訊,由host分組
2 host_summary_by_file_io 和 x$host_summary_by_file_io Views
檢視總計了檔案io,由host分組
3 host_summary_by_file_io_type 和 x$host_summary_by_file_io_type Views
檢視總計了檔案io,由host和event型別分組。
4 host_summary_by_stages 和 x$host_summary_by_stages Views
總計語句stage,由host分組
5 host_summary_by_statement_latency 和 x$host_summary_by_statement_latency Views
總計語句的統計資訊,由host分組
6 host_summary_by_statement_type 和 x$host_summary_by_statement_type Views
總計語句的執行,由host和語句型別分組
7 innodb_buffer_stats_by_schema 和 x$innodb_buffer_stats_by_schema Views
統計information_schema.innodb_buffer_page,由schema分組,object_schema為物件的schema,如果為innodb表屬於innodb system。
8 innodb_buffer_stats_by_table 和 x$innodb_buffer_stats_by_table Views
統計information_schema.innodb_buffer_page,由表名分組。
9 innodb_lock_waits 和 x$innodb_lock_waits Views
總計了innodb鎖等待。列如下:
wait_started:等待開始事件。
wait_age:等待鎖的時間長度。
wait_age_secs:等待了多少秒。
locked_table:被鎖定的表。
locked_index:被鎖的索引
locked_type:鎖等待型別
waiting_trx_started:等待事務的開始事件。
waiting_trx_age:等待事務等待時間。
waiting_trx_rows_locked:等待事務鎖定的行鎖個數。
……
10 io_by_thread_by_latency 和 x$io_by_thread_by_latency Views
總計了IO消費者顯示了執行緒的IO等待。
11 io_global_by_file_by_bytes 和 x$io_global_by_file_by_bytes Views
總計了IO消費者顯示每個檔案的讀寫量,由檔案分組
12 io_global_by_file_by_latency 和 x$io_global_by_file_by_latency Views
總結io消費者顯示io次數和延遲事件,由檔案分組
13 io_global_by_wait_by_bytes 和 x$io_global_by_wait_by_bytes Views
每個event的總io位元組。
14 io_global_by_wait_by_latency 和 x$io_global_by_wait_by_latency Views
每個event的總io次數和io等待時間
15 latest_file_io 和 x$latest_file_io Views
總計活動的檔案IO,由檔案和執行緒分組。
16 memory_by_host_by_current_bytes 和 x$memory_by_host_by_current_bytes Views
總計host使用的總記憶體
17 memory_by_thread_by_current_bytes 和 x$memory_by_thread_by_current_bytes Views
執行緒的記憶體使用
18 memory_by_user_by_current_bytes 和 x$memory_by_user_by_current_bytes Views
總計使用者使用的記憶體
19 memory_global_by_current_bytes 和 x$memory_global_by_current_bytes Views
每個分配型別分配的記憶體
20 memory_global_total 和 x$memory_global_total Views
服務的總記憶體使用
21 metrics View
檢視總計mysql服務的指標,顯示變數名,變數值,型別和他們的啟動情況。檢視在mysql 5.7.9被新增,檢視主要包含資訊:
o 全域性的狀態變數,來至於global_status表。
o 來自information_schema.global_status.Innodb指標
o 當前和所有記憶體分配
o 當前時間
有一些在global_status和innodb_status中有重複的指標,metrics檢視會進行消除。
22 processlist 和 x$processlist Views
比showprocesslist返回的資訊更加詳細
23 ps_check_lost_instrumentation View
返回丟失的效能框架記錄點,顯示是否效能框架可以跟蹤所有資料。
24 schema_auto_increment_columns View
檢視顯示了有auto_increment的列,並且提供了有用的資訊。
25 schema_index_statistics 和 x$schema_index_statistics Views
檢視提供的所有統計資訊
26 schema_object_overview View
schema下物件統計
27 schema_redundant_indexes 和 x$schema_flattened_keys Views
顯示了冗餘的索引
28 schema_table_lock_waits 和 x$schema_table_lock_waits Views
顯示了哪些會話被後設資料鎖鎖定,什麼鎖定了它們
29 schema_table_statistics 和 x$schema_table_statistics Views
表操作的統計,io和延遲的統計
30 schema_table_statistics_with_buffer 和 x$schema_table_statistics_with_buffer Views
表操作的統計,io和延遲的統計,和記憶體的分配
31 schema_tables_with_full_table_scans 和 x$schema_tables_with_full_table_scans Views
顯示了哪些表被表掃描訪問
32 schema_unused_indexes View
未使用過的索引
33 session 和 x$session Views
和processlist相似但是不顯示後臺程式
34 session_ssl_status View
對於每個連線顯示SSL版本,chipher和count
35 statement_analysis 和 x$statement_analysis Views
顯示了語句的執行情況,執行次數,響應行數,延遲等
36 statements_with_errors_or_warnings 和 x$statements_with_errors_or_warnings Views
語句的錯誤或者警告
37 statements_with_full_table_scans 和 x$statements_with_full_table_scans Views
用到了表掃描的語句
38 statements_with_runtimes_in_95th_percentile和x$statements_with_runtimes_in_95th_percentile Views
runtimes在95%以內的語句
39 statements_with_sorting 和 x$statements_with_sorting Views
執行了排序的語句
40 statements_with_temp_tables 和 x$statements_with_temp_tables Views
使用了臨時表的語句
41 user_summary 和 x$user_summary Views
使用者總計資訊,包含語句,檔案io,連線
42 user_summary_by_file_io 和 x$user_summary_by_file_io Views
使用者檔案io總計
43 user_summary_by_file_io_type 和 x$user_summary_by_file_io_type Views
使用者檔案io型別總計
44 user_summary_by_stages 和 x$user_summary_by_stages Views
使用者stage事件總計
45 user_summary_by_statement_latency 和 x$user_summary_by_statement_latency Views
使用者在執行語句上的延遲
46 user_summary_by_statement_type 和 x$user_summary_by_statement_type Views
使用者在語句型別上的延遲
47 version View
版本
48 wait_classes_global_by_avg_latency 和 x$wait_classes_global_by_avg_latency Views
等待型別延遲彙總,由平均延遲排序
49 wait_classes_global_by_latency 和 x$wait_classes_global_by_latency Views
等待型別延遲彙總,由總延遲排序
50 waits_by_host_by_latency 和 x$waits_by_host_by_latency Views
host,等待事件延遲彙總
51 waits_by_user_by_latency 和 x$waits_by_user_by_latency Views
使用者等待事件延遲
52 waits_global_by_latency 和 x$waits_global_by_latency Views
等待事件延遲。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15498/viewspace-2135445/,如需轉載,請註明出處,否則將追究法律責任。

相關文章