#!/bin/bash #format_innodb_status /tmp/percona-toolkit-innodb-status cat <<'EOF' > $1 Checkpoint Age | 348M InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue Oldest Transaction | 4 Seconds History List Len | 426 Read Views | 583 Undo Log Entries | 71 transactions, 247 total undo, 46 max undo Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites Pending I/O Flushes | 0 buf pool, 0 log Transaction States | 1xACTIVE, 70xACTIVE (PREPARED) Tables Locked 62 `citydb`.`player_buildings` 46 `citydb`.`players` 22 `citydb`.`city_grid` 17 `citydb`.`player_stats` 6 `citydb`.`player_contracts` 1 `citydb`.`player_achievements` Semaphore Waits 23 trx/trx0undo.c line 1796 10 trx/trx0trx.c line 1888 8 trx/trx0trx.c line 1033 7 trx/trx0trx.c line 738 1 lock/lock0lock.c line 3770 1 ./include/log0log.ic line 322 Mutexes/Locks Waited For 33 Mutex at 0x2abf68b76a18 '&rseg->mutex' 16 Mutex at 0x48ace40 '&kernel_mutex' 1 Mutex at 0x2abf68b6c0d0 '&log_sys->mutex' EOF cp samples/innodb-status.002.txt /tmp/percona-toolkit-innodb-status