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進(jìn)行邏輯讀的數(shù)量暇矫。單位是次數(shù)]
- hit : (Innodb_buffer_pool_read_requests - Innodb_buffer_pool_reads[讀磁盤次數(shù)]) / 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 次數(shù)
- writes:innodb_data_writes 次數(shù)
- read:Innodb_data_read 字節(jié)
- written:Innodb_data_written 字節(jié)
-----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 記錄往磁盤上寫日志的次數(shù)
- written:innodb_os_log_written 日志刷盤的字節(jié)數(shù)滓技,如果在commit不怎么變化的情況下奈虾,這個(gè)值出現(xiàn)暴增,說(shuō)明系統(tǒng)出現(xiàn)大事務(wù)了(處理:kill線程,必要情況kill掉mysql進(jìn)程)。寫入redo logfile中的字節(jié)量
--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長(zhǎng)度代表了有多少undo日志還沒有被清理掉。如果發(fā)現(xiàn)history list的長(zhǎng)度越大貌笨,要么就是實(shí)例的復(fù)雜非常高,要么就是可能有大查詢襟沮,或者事務(wù)沒提交锥惋,導(dǎo)致Undo log無(wú)法分析
- 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被打開了开伏,一個(gè)read view是一致性保證的MVCC “snapshot”
- view :
-
query
- inside :有多少線程在Innodb內(nèi)核
- que :隊(duì)列長(zhǎng)度
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 事務(wù)日志相關(guān)信息膀跌,包括當(dāng)前的日志序列號(hào)(Log sequence number),已經(jīng)刷新同步到那個(gè)序列號(hào)硅则,最近的check point到那個(gè)序列號(hào)了淹父。除此之外,還顯示了系統(tǒng)從啟動(dòng)到現(xiàn)在已經(jīng)做了多少次check point怎虫,多少次日志刷新暑认。)
---
(注:小括號(hào)為官方解釋。)
Log sequence number 2560255(當(dāng)前的日志序列號(hào))
Log flushed up to 2560255(刷新到日志重做日志文件的lsn)
Pages flushed up to 2560255(寫入磁盤的臟頁(yè)的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