mysql> show processlist;
+----+------+-----------+------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------+------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
| 1 | root | localhost | accounting | Query | 2934 | Sending data | select ac,src,dst,sum(bytes),sum(packets),srcuser,dstuser from data where stamp > '2006-08-23 01:00: |
| 11 | root | localhost | NULL | Query | 0 | NULL | show processlist |
+----+------+-----------+------------+---------+------+--------------+------------------------------------------------------------------------------------------------------+
2 rows in set (0.03 sec)
=====================================
060824 15:54:03 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 47 seconds
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 25, signal count 25
Mutex spin waits 0, rounds 0, OS waits 0
RW-shared spins 50, OS waits 25; RW-excl spins 0, OS waits 0
------------
TRANSACTIONS
------------
Trx id counter 0 1793
Purge done for trx's n:o < 0 0 undo n:o < 0 0
History list length 0
Total number of lock structs in row lock hash table 0
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0 0, not started, process no 28900, OS thread id 1141946720
MySQL thread id 11, query id 27 localhost root
show engine innodb status
---TRANSACTION 0 1792, ACTIVE 2988 sec, process no 28900, OS thread id 1141414240 fetching rows, thread declared inside InnoDB 323
mysql tables in use 1, locked 0
MySQL thread id 1, query id 18 localhost root Sending data
select ac,src,dst,sum(bytes),sum(packets),srcuser,dstuser from data where stamp > '2006-08-23 01:00:00' group by hash
Trx read view will not see trx with id >= 0 1793, sees < 0 1793
--------
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
350832 OS file reads, 3 OS file writes, 3 OS fsyncs
1 pending preads, 0 pending pwrites
116.32 reads/s, 16569 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf for space 0: size 1, free list len 0, seg size 2, is empty
Ibuf for space 0: size 1, free list len 0, seg size 2,
0 inserts, 0 merged recs, 0 merges
Hash table size 2490329, used cells 0, node heap has 0 buffer(s)
0.00 hash searches/s, 0.00 non-hash searches/s
---
LOG
---
Log sequence number 1 2132051109
Log flushed up to 1 2132051099
Last checkpoint at 1 2132051099
0 pending log writes, 0 pending chkp writes
8 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total memory allocated 1465009112; in additional pool allocated 199424
Buffer pool size 76800
Free buffers 0
Database pages 76800
Modified db pages 1
Pending reads 1
Pending writes: LRU 0, flush list 0, single page 0
Pages read 352108, created 0, written 0
117.64 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 780 / 1000
--------------
ROW OPERATIONS
--------------
1 queries inside InnoDB, 0 queries in queue
2 read views open inside InnoDB
Main thread process no. 28900, id 1140881760, state: waiting for server activity
Number of rows inserted 0, updated 0, deleted 0, read 7312556
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 2381.91 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================