Если она показывает только последние транзакции, как увидеть то что происходило ранее, к тому же здесь еще zabbix крутится, не все увижу
Ту что команду я вам скинул, оно покажет вам транзакции у которых статус lock
Хорошо, сделал, показываю:
mysql> SHOW ENGINE INNODB STATUS;
| InnoDB | |
=====================================
2017-08-01 13:28:06 82b6c2200 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 24 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 275117 srv_active, 0 srv_shutdown, 4900 srv_idle
srv_master_thread log flush and writes: 274743
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 41244
OS WAIT ARRAY INFO: signal count 61116
Mutex spin waits 321229, rounds 1734429, OS waits 6974
RW-shared spins 40843, rounds 884623, OS waits 24985
RW-excl spins 135936, rounds 1349106, OS waits 4663
Spin rounds per wait: 5.40 mutex, 21.66 RW-shared, 9.92 RW-excl
------------
TRANSACTIONS
------------
Trx id counter 55654979
Purge done for trx's n:o < 55654950 undo n:o < 0 state: running but idle
History list length 2790
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0, not started
MySQL thread id 544, OS thread handle 0x82b6c2200, query id 12748913 localhost root init
SHOW ENGINE INNODB STATUS
---TRANSACTION 55626945, not started
MySQL thread id 149, OS thread handle 0x82b730a00, query id 12714511 localhost zabbix
---TRANSACTION 55654978, not started
MySQL thread id 148, OS thread handle 0x82b6c2c00, query id 12748912 localhost zabbix
---TRANSACTION 55607784, not started
MySQL thread id 26, OS thread handle 0x82b832200, query id 12690955 localhost zabbix
---TRANSACTION 55608355, not started
MySQL thread id 20, OS thread handle 0x82b6c3600, query id 12692120 localhost zabbix
---TRANSACTION 55608391, not started
MySQL thread id 15, OS thread handle 0x82b6c0400, query id 12692194 localhost zabbix
---TRANSACTION 55608463, not started
MySQL thread id 21, OS thread handle 0x82b730000, query id 12692339 localhost zabbix
---TRANSACTION 55608439, not started
MySQL thread id 17, OS thread handle 0x82b6c1800, query id 12692291 localhost zabbix
---TRANSACTION 55654697, not started
MySQL thread id 25, OS thread handle 0x82b831800, query id 12748428 localhost zabbix
---TRANSACTION 55654938, not started
MySQL thread id 16, OS thread handle 0x82b6c0e00, query id 12748740 localhost zabbix
---TRANSACTION 55654557, not started
MySQL thread id 4, OS thread handle 0x82b528500, query id 12748162 localhost nodeny
---TRANSACTION 55654950, not started
MySQL thread id 5, OS thread handle 0x82b528f00, query id 12748843 localhost nodeny
---TRANSACTION 55654865, not started
MySQL thread id 6, OS thread handle 0x82b529900, query id 12748649 localhost nodeny
---TRANSACTION 55654815, not started
MySQL thread id 7, OS thread handle 0x82b52a300, query id 12748579 localhost nodeny
---TRANSACTION 55654798, not started
MySQL thread id 8, OS thread handle 0x82b52ad00, query id 12748552 localhost nodeny
---TRANSACTION 55654936, not started
MySQL thread id 1, OS thread handle 0x82b461700, query id 12748738 localhost nodeny
---TRANSACTION 55654779, not started
MySQL thread id 3, OS thread handle 0x82b462b00, query id 12748537 localhost nodeny
---TRANSACTION 55654966, not started
MySQL thread id 2, OS thread handle 0x82b462100, query id 12748900 localhost nodeny
--------
FILE I/O
--------
I/O thread 0 state: waiting for i/o request (insert buffer thread)
I/O thread 1 state: waiting for i/o request (log thread)
I/O thread 2 state: waiting for i/o request (read thread)
I/O thread 3 state: waiting for i/o request (read thread)
I/O thread 4 state: waiting for i/o request (read thread)
I/O thread 5 state: waiting for i/o request (read thread)
I/O thread 6 state: waiting for i/o request (write thread)
I/O thread 7 state: waiting for i/o request (write thread)
I/O thread 8 state: waiting for i/o request (write thread)
I/O thread 9 state: waiting for i/o request (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
1029 OS file reads, 1179507 OS file writes, 1166939 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 1.67 writes/s, 1.17 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 0, seg size 2, 6 merges
merged operations:
insert 11, delete mark 0, delete 0
discarded operations:
insert 0, delete mark 0, delete 0
Hash table size 276707, node heap has 13 buffer(s)
128.12 hash searches/s, 22.87 non-hash searches/s
---
LOG
---
Log sequence number 6495769074
Log flushed up to 6495769074
Pages flushed up to 6495769074
Last checkpoint at 6495769074
0 pending log writes, 0 pending chkp writes
1143521 log i/o's done, 0.58 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 137363456; in additional pool allocated 0
Dictionary memory allocated 945684
Buffer pool size 8192
Free buffers 6694
Database pages 1485
Old database pages 528
Modified db pages 0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 56, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 966, created 519, written 70902
0.00 reads/s, 0.00 creates/s, 0.87 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: 1485, unzip_LRU len: 0
I/O sum[0]:cur[3596], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Main thread id 35092441856, state: sleeping
Number of rows inserted 1097287, updated 775018, deleted 1105513, read 109505086
0.00 inserts/s, 0.17 updates/s, 0.00 deletes/s, 298.86 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================
1 row in set (0.00 sec)