深圳全飞鸿

标题: Lock wait timeout exceeded; try restarting transaction [打印本页]

作者: zhgc    时间: 2020-8-3 20:09
标题: Lock wait timeout exceeded; try restarting transaction


Lock wait timeout exceeded; try restarting transaction


SHOW ENGINE INNODB STATUS ;




=====================================
200803 20:09:28 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 15 seconds
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 17, signal count 17
Mutex spin waits 0, rounds 0, OS waits 0
RW-shared spins 34, OS waits 17; RW-excl spins 0, OS waits 0
------------
TRANSACTIONS
------------
Trx id counter 0 182086
Purge done for trx's n < 0 181607 undo n < 0 0
History list length 15
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0 182082, not started, OS thread id 4812
MySQL thread id 20, query id 1651 20160925-1718 192.168.111.130 root
---TRANSACTION 0 182085, not started, OS thread id 488
MySQL thread id 10, query id 1663 localhost 127.0.0.1 root
SHOW ENGINE INNODB STATUS
---TRANSACTION 0 182047, ACTIVE 3818 sec, OS thread id 2452
2 lock struct(s), heap size 368, 1 row lock(s), undo log entries 236
MySQL thread id 13, query id 1405 20160925-1718 192.168.111.130 root
--------
FILE I/O
--------
I/O thread 0 state: wait Windows aio (insert buffer thread)
I/O thread 1 state: wait Windows aio (log thread)
I/O thread 2 state: wait Windows aio (read thread)
I/O thread 3 state: wait Windows aio (write thread)
Pending normal aio reads: 0, aio writes: 0,
ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0
Pending flushes (fsync) log: 0; buffer pool: 0
3795 OS file reads, 181 OS file writes, 87 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 627, seg size 629,
0 inserts, 0 merged recs, 0 merges
Hash table size 188953, node heap has 3 buffer(s)
0.00 hash searches/s, 0.00 non-hash searches/s
---
LOG
---
Log sequence number 3 401215861
Log flushed up to   3 401215861
Last checkpoint at  3 401215861
0 pending log writes, 0 pending chkp writes
42 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 114035744; in additional pool allocated 2097152
Dictionary memory allocated 1721160
Buffer pool size   5824
Free buffers       2838
Database pages     2983
Modified db pages  0
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages read 2973, created 10, written 123
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
No buffer pool page gets since the last printout
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Main thread id 3428, state: waiting for server activity
Number of rows inserted 1888, updated 0, deleted 0, read 61956
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================

作者: zhgc    时间: 2021-1-26 21:53
---TRANSACTION 0 182047, ACTIVE 3818 sec, OS thread id 2452




欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) Powered by Discuz! X3.2