| InnoDB | |
=====================================
2019-12-08 21:14:46 7f46fabe3700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 54 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 74 srv_active, 0 srv_shutdown, 20726 srv_idle
srv_master_thread log flush and writes: 20800
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 149
OS WAIT ARRAY INFO: signal count 149
Mutex spin waits 48, rounds 1440, OS waits 42
RW-shared spins 108, rounds 3220, OS waits 107
RW-excl spins 0, rounds 0, OS waits 0
Spin rounds per wait: 30.00 mutex, 29.81 RW-shared, 0.00 RW-excl
------------------------
LATEST DETECTED DEADLOCK
------------------------
2019-12-08 21:14:32 7f46fabe3700
*** (1) TRANSACTION:
TRANSACTION 6441, ACTIVE 64 sec starting index read
mysql tables in use 1, locked 1
LOCK WAIT 3 lock struct(s), heap size 360, 2 row lock(s), undo log entries 1
MySQL thread id 24, OS thread handle 0x7f46faeac700, query id 426 localhost root updating
update account set money=money+100 where id=2
*** (1) WAITING FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 8 page no 3 n bits 80 index `PRIMARY` of table `qding_brick`.`account` trx id 6441 lock_mode X locks rec but not gap waiting
Record lock, heap no 3 PHYSICAL RECORD: n_fields 5; compact format; info bits 0
0: len 4; hex 80000002; asc ;;
1: len 6; hex 00000000192a; asc *;;
2: len 7; hex 2a000001e80110; asc * ;;
3: len 3; hex 626262; asc bbb;;
4: len 4; hex 00808944; asc D;;
*** (2) TRANSACTION:
TRANSACTION 6442, ACTIVE 58 sec starting index read
mysql tables in use 1, locked 1
3 lock struct(s), heap size 360, 2 row lock(s), undo log entries 1
MySQL thread id 20, OS thread handle 0x7f46fabe3700, query id 427 localhost root updating
update account set money=money+100 where id=1
*** (2) HOLDS THE LOCK(S):
RECORD LOCKS space id 8 page no 3 n bits 80 index `PRIMARY` of table `qding_brick`.`account` trx id 6442 lock_mode X locks rec but not gap
Record lock, heap no 3 PHYSICAL RECORD: n_fields 5; compact format; info bits 0
0: len 4; hex 80000002; asc ;;
1: len 6; hex 00000000192a; asc *;;
2: len 7; hex 2a000001e80110; asc * ;;
3: len 3; hex 626262; asc bbb;;
4: len 4; hex 00808944; asc D;;
*** (2) WAITING FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 8 page no 3 n bits 80 index `PRIMARY` of table `qding_brick`.`account` trx id 6442 lock_mode X locks rec but not gap waiting
Record lock, heap no 2 PHYSICAL RECORD: n_fields 5; compact format; info bits 0
0: len 4; hex 80000001; asc ;;
1: len 6; hex 000000001929; asc );;
2: len 7; hex 290000015d153b; asc ) ] ;;;
3: len 3; hex 616161; asc aaa;;
4: len 4; hex 00808944; asc D;;
*** WE ROLL BACK TRANSACTION (2)
------------
TRANSACTIONS
------------
Trx id counter 6444
Purge done for trx's n:o < 6443 undo n:o < 0 state: running but idle
History list length 135
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0, not started
MySQL thread id 22, OS thread handle 0x7f46fac65700, query id 294 192.168.137.1 root cleaning up
---TRANSACTION 6442, not started
MySQL thread id 20, OS thread handle 0x7f46fabe3700, query id 428 localhost root init
show engine innodb status
---TRANSACTION 6441, ACTIVE 78 sec
3 lock struct(s), heap size 360, 2 row lock(s), undo log entries 2
MySQL thread id 24, OS thread handle 0x7f46faeac700, query id 426 localhost root cleaning up
Trx read view will not see trx with id >= 6442, sees < 6442
--------
FILE I/O
--------
I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (write thread)
I/O thread 7 state: waiting for completed aio requests (write thread)
I/O thread 8 state: waiting for completed aio requests (write thread)
I/O thread 9 state: waiting for completed aio requests (write thread)
Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] ,
ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0
Pending flushes (fsync) log: 0; buffer pool: 0
322 OS file reads, 977 OS file writes, 591 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.30 writes/s, 0.20 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 0, seg size 2, 0 merges
merged operations:
insert 0, delete mark 0, delete 0
discarded operations:
insert 0, delete mark 0, delete 0
Hash table size 276671, node heap has 1 buffer(s)
0.00 hash searches/s, 0.07 non-hash searches/s
---
LOG
---
Log sequence number 2085292
Log flushed up to 2085292
Pages flushed up to 2085292
Last checkpoint at 2085292
0 pending log writes, 0 pending chkp writes
280 log i/o's done, 0.09 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 137363456; in additional pool allocated 0
Dictionary memory allocated 102106
Buffer pool size 8191
Free buffers 7821
Database pages 369
Old database pages 0
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 0, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 304, created 65, written 534
0.00 reads/s, 0.02 creates/s, 0.17 writes/s
Buffer pool hit rate 1000 / 1000, young-making rate 0 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 369, unzip_LRU len: 0
I/O sum[0]:cur[0], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Main thread process no. 1315, id 139942785705728, state: sleeping
Number of rows inserted 29, updated 39, deleted 16, read 737
0.00 inserts/s, 0.04 updates/s, 0.00 deletes/s, 0.04 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================
来源:CSDN
作者:tian31233
链接:https://blog.csdn.net/tian31233/article/details/103613265