orzdba好用的不要不要的
threads
- run:Threads_running
- con:Threads_connected
- cre:Threads_created
- cac:Threads_cached
------threads------
run con cre cac|
0 0 0 0|
200 202 0 0|
201 202 0 0|
201 202 0 0|
201 202 0 0|
innodb_hit
- lor : Innodb_buffer_pool_read_requests [innodb進行邏輯讀的數量。單位是次數]
- hit : (Innodb_buffer_pool_read_requests - Innodb_buffer_pool_reads[讀磁盤次數]) / Innodb_buffer_pool_read_requests * 100%
-Hit%-
| lor hit|
| 0 100.00|
| 385098 98.00|
| 392831 98.01|
innodb_rows
- innodb_rows_inserted_diff : innodb_rows_inserted
- innodb_rows_updated_diff :innodb_rows_updated
- innodb_rows_deleted_diff :innodb_rows_deleted
- innodb_rows_read_diff :innodb_rows_read
---innodb rows status---
ins upd del read|
0 0 0 0|
1717 3430 1718 715111|
1728 3439 1723 717916|
innodb_data
- reads:Innodb_data_reads 次數
- writes:innodb_data_writes 次數
- read:Innodb_data_read 字節
- written:Innodb_data_written 字節
-----innodb data status----
reads writes read written|
0 0 0 0|
8220 5043 128.4m 106.3m|
8091 5139 126.4m 108.6m|
8089 5148 126.4m 109.3m|
innodb_log
- fsyncs:Innodb_os_log_fsyncs 記錄往磁盤上寫日誌的次數
- written:innodb_os_log_written 日誌刷盤的字節數,如果在commit不怎麼變化的情況下,這個值出現暴增,說明系統出現大事務了(處理:kill線程,必要情況kill掉mysql進程)。寫入redo logfile中的字節量
--innodb log--
fsyncs written|
0 0|
1701 3.9m|
1708 4.1m|
1716 3.9m|
innodb_status
獲取方式:show engine innodb status
-
his
- list : 取值方式:
history list length
innodb的history list長度代表了有多少undo日誌還沒有被清理掉。如果發現history list的長度越大,要麼就是實例的複雜非常高,要麼就是可能有大查詢,或者事務沒提交,導致Undo log無法分析
- list : 取值方式:
-
log(byte)
- uflush:= (Log sequence number)-(Log flushed up to) :沒有刷新到redolog的文件大小
- uckpt:= (Log sequence number)-(Last checkpoint at) :沒有落盤的redo大小
-
read
- view :
read views open inside InnoDB
。有多少read view被打開了,一個read view是一致性保證的MVCC “snapshot”
- view :
-
query
- inside :有多少線程在Innodb內核
- que :隊列長度
his --log(byte)-- read ---query---
list uflush uckpt view inside que|
566 1k 891.9m 191 4 193|
757 2k 894.9m 189 5 194|
529 3k 898.0m 193 3 194|
427 503 880.6m 190 1 193|
---
LOG
(Innodb 事務日誌相關信息,包括當前的日誌序列號(Log sequence number),已經刷新同步到那個序列號,最近的check point到那個序列號了。除此之外,還顯示了系統從啓動到現在已經做了多少次check point,多少次日誌刷新。)
---
(注:小括號爲官方解釋。)
Log sequence number 2560255(當前的日誌序列號)
Log flushed up to 2560255(刷新到日誌重做日誌文件的lsn)
Pages flushed up to 2560255(寫入磁盤的髒頁的lsn。記錄在checkpoint中)
Last checkpoint at 2560246(刷新到磁盤的lsn)
--------------
ROW OPERATIONS
--------------
2 queries inside InnoDB, 0 queries in queue
2 read views open inside InnoDB
Main thread process no. 7969, id 1191348544, state: sleeping
Number of rows inserted 287921794, updated 733493588, deleted 30775703, read 2351464150250
5.10 inserts/s, 29.38 updates/s, 0.02 deletes/s, 51322.87 reads/s