Status: ===================================== 070122 12:15:10 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 42 seconds ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 31, signal count 31 Mutex spin waits 0, rounds 740, OS waits 3 RW-shared spins 50, OS waits 25; RW-excl spins 3, OS waits 3 ------------------------ LATEST DETECTED DEADLOCK ------------------------ 070122 12:13:10 *** (1) TRANSACTION: TRANSACTION 0 5720, ACTIVE 0 sec, process no 10282, OS thread id 2834444 starting index read mysql tables in use 1, locked 1 LOCK WAIT 9 lock struct(s), heap size 1024 MySQL thread id 683, query id 4257 localhost 127.0.0.1 gmax updating DELETE FROM XXattribute WHERE id = '112' AND pkey = 'coin1' *** (1) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 0 page no 53 n bits 104 index `PRIMARY` of table `test/XXattribute` trx id 0 5720 lock_mode X locks rec but not gap waiting Record lock, heap no 10 PHYSICAL RECORD: n_fields 6; compact format; info bits 0 0: len 8; hex 8000000000000070; asc p;; 1: len 5; hex 636f696e31; asc coin1;; 2: len 6; hex 00000000164f; asc O;; 3: len 7; hex 0000000038188a; asc 8 ;; 4: len 2; hex 3235; asc 25;; 5: len 1; hex 30; asc 0;; *** (2) TRANSACTION: TRANSACTION 0 5721, ACTIVE 0 sec, process no 10281, OS thread id 2830347 starting index read, thread declared inside InnoDB 500 mysql tables in use 1, locked 1 9 lock struct(s), heap size 1024 MySQL thread id 682, query id 4258 localhost 127.0.0.1 gmax updating DELETE FROM XXattribute WHERE id = '112' AND pkey = 'coin1' *** (2) HOLDS THE LOCK(S): RECORD LOCKS space id 0 page no 53 n bits 104 index `PRIMARY` of table `test/XXattribute` trx id 0 5721 lock mode S Record lock, heap no 1 PHYSICAL RECORD: n_fields 1; compact format; info bits 0 0: len 8; hex 73757072656d756d; asc supremum;; Record lock, heap no 7 PHYSICAL RECORD: n_fields 6; compact format; info bits 0 0: len 8; hex 800000000000006f; asc o;; 1: len 5; hex 636f696e34; asc coin4;; 2: len 6; hex 00000000164f; asc O;; 3: len 7; hex 00000000381796; asc 8 ;; 4: len 2; hex 3130; asc 10;; 5: len 1; hex 30; asc 0;; Record lock, heap no 8 PHYSICAL RECORD: n_fields 6; compact format; info bits 0 0: len 8; hex 800000000000006f; asc o;; 1: len 5; hex 636f696e33; asc coin3;; 2: len 6; hex 00000000164f; asc O;; 3: len 7; hex 000000003817cf; asc 8 ;; 4: len 1; hex 35; asc 5;; 5: len 1; hex 30; asc 0;; Record lock, heap no 10 PHYSICAL RECORD: n_fields 6; compact format; info bits 0 0: len 8; hex 8000000000000070; asc p;; 1: len 5; hex 636f696e31; asc coin1;; 2: len 6; hex 00000000164f; asc O;; 3: len 7; hex 0000000038188a; asc 8 ;; 4: len 2; hex 3235; asc 25;; 5: len 1; hex 30; asc 0;; Record lock, heap no 11 PHYSICAL RECORD: n_fields 6; compact format; info bits 0 0: len 8; hex 8000000000000070; asc p;; 1: len 5; hex 636f696e32; asc coin2;; 2: len 6; hex 00000000164f; asc O;; 3: len 7; hex 000000003818c3; asc 8 ;; 4: len 2; hex 3130; asc 10;; 5: len 1; hex 30; asc 0;; Record lock, heap no 13 PHYSICAL RECORD: n_fields 6; compact format; info bits 0 0: len 8; hex 8000000000000071; asc q;; 1: len 5; hex 636f696e35; asc coin5;; 2: len 6; hex 00000000164f; asc O;; 3: len 7; hex 00000000381987; asc 8 ;; 4: len 2; hex 3530; asc 50;; 5: len 1; hex 30; asc 0;; *** (2) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 0 page no 53 n bits 104 index `PRIMARY` of table `test/XXattribute` trx id 0 5721 lock_mode X locks rec but not gap waiting Record lock, heap no 10 PHYSICAL RECORD: n_fields 6; compact format; info bits 0 0: len 8; hex 8000000000000070; asc p;; 1: len 5; hex 636f696e31; asc coin1;; 2: len 6; hex 00000000164f; asc O;; 3: len 7; hex 0000000038188a; asc 8 ;; 4: len 2; hex 3235; asc 25;; 5: len 1; hex 30; asc 0;; *** WE ROLL BACK TRANSACTION (2) ------------ TRANSACTIONS ------------ Trx id counter 0 6105 Purge done for trx's n:o < 0 6103 undo n:o < 0 0 History list length 3 Total number of lock structs in row lock hash table 0 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 0 0, not started, process no 9900, OS thread id 1273871 MySQL thread id 302, query id 7023 localhost root show engine innodb status -------- 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 (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 27 OS file reads, 714 OS file writes, 550 OS fsyncs 0.00 reads/s, 0 avg bytes/read, 1.71 writes/s, 1.29 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 1, free list len 0, seg size 2, 0 inserts, 0 merged recs, 0 merges Hash table size 830173, used cells 20, node heap has 1 buffer(s) 4.02 hash searches/s, 17.62 non-hash searches/s --- LOG --- Log sequence number 0 1766964 Log flushed up to 0 1766964 Last checkpoint at 0 1766964 0 pending log writes, 0 pending chkp writes 468 log i/o's done, 1.00 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total memory allocated 230820762; in additional pool allocated 992768 Buffer pool size 12800 Free buffers 12735 Database pages 64 Modified db pages 0 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages read 64, created 0, written 371 0.00 reads/s, 0.00 creates/s, 0.98 writes/s Buffer pool hit rate 1000 / 1000 -------------- ROW OPERATIONS -------------- 0 queries inside InnoDB, 0 queries in queue 1 read views open inside InnoDB Main thread process no. 9581, id 32777, state: waiting for server activity Number of rows inserted 1078, updated 356, deleted 1058, read 7495 2.05 inserts/s, 0.74 updates/s, 2.02 deletes/s, 15.50 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT