【MySQL】数据库监控工具--innotop
admin
2023-04-18 08:23:16
0
[root@wallet04 ~]# yum -y install perl-DBI perl-DBD-MySQL perl-Time-HiRes perl-TermReadKey

[root@wallet04 ~]# git clone https://github.com/innotop/innotop.git
Initialized empty Git repository in /root/innotop/.git/
remote: Enumerating objects: 621, done.
remote: Total 621 (delta 0), reused 0 (delta 0), pack-reused 621
Receiving objects: 100% (621/621), 1.17 MiB | 230 KiB/s, done.
Resolving deltas: 100% (382/382), done.

[root@wallet04 ~]# cd innotop
[root@wallet04 innotop]# perl Makefile.PL
[root@wallet04 innotop]#make
[root@wallet04 innotop]#make install

[root@wallet04 ~]# innotop --version
innotop  Ver 1.11.4

[root@wallet04 ~]# innotop --help
Usage: innotop  
  --askpass          Prompt for a password when connecting to MySQL
  --[no]color   -C   Use terminal coloring (default)
  --config      -c   Config file to read
  --count            Number of updates before exiting
  --delay       -d   Delay between updates in seconds
  --help             Show this help message
  --host        -h   Connect to host
  --[no]inc     -i   Measure incremental differences
  --mode        -m   Operating mode to start in
  --nonint      -n   Non-interactive, output tab-separated fields
  --password    -p   Password to use for connection
  --port        -P   Port number to use for connection
  --skipcentral -s   Skip reading the central configuration file
  --socket      -S   MySQL socket to use for connection
  --spark            Length of status sparkline (default 10)
  --timestamp   -t   Print timestamp in -n mode (1: per iter; 2: per line)
  --user        -u   User for login if not current user
  --version          Output version information and exit
  --write       -w   Write running configuration into home directory if no config files were loaded
  
[root@wallet04 ~]# innotop --user root --askpass --host 192.168.1.201                           
Enter password :  
Switch to a different mode:
   A  Dashboard         I  InnoDB I/O Info     Q  Query List
   B  InnoDB Buffers    K  InnoDB Lock Waits   R  InnoDB Row Ops
   C  Command Summary   L  Locks               S  Variables & Status
   D  InnoDB Deadlocks  M  Replication Status  T  InnoDB Txns
   F  InnoDB FK Err     O  Open Tables         U  User Statistics
Actions:
   d  Change refresh interval            p  Pause innotop
   i  Toggle incremental status display  q  Quit innotop
   n  Switch to the next connection      
Other:
 TAB  Switch to the next server group   /  Quickly filter what you see
   !  Show license and warranty         =  Toggle aggregation
   #  Select/create server groups       @  Select/create server connections
   $  Edit configuration settings       \  Clear quick-filters
Press any key to continue

Q Query List
When   Load  Cxns  QPS     Slow  Se/In/Up/De%  QCacheHit  KCacheHit  BpsIn    BpsOut
Now    0.02    29  365.11     0  97/ 0/ 0/ 0       0.00%    100.00%  297.38k   1.59M
Total  0.00  100   13.98    28  69/ 7/ 6/ 0       0.00%     99.99%    4.06k  23.66k
Cmd    ID      State  User   Host     DB      Time   Query

B InnoDB Buffers
_____________________________ Buffer Pool _____________________________
Size     Free Bufs  Pages  Dirty Pages  Hit Rate     Memory  Add'l Pool
256.00k     179732  78992            0  100 / 100   4.09G           0
____________________ Page Statistics _____________________
Reads  Writes  Created  Reads/Sec  Writes/Sec  Creates/Sec
73859  922096     6753       0.00        0.00         0.00
______________________ Insert Buffers ______________________
Inserts  Merged Recs  Merges  Size  Free List Len  Seg. Size
                   0       0     1           1811       1813
__________________ Adaptive Hash Index __________________
Size   Cells Used  Node Heap Bufs  Hash/Sec  Non-Hash/Sec
8.44M                        3418      0.50          0.00

I InnoDB I/O Info
_________________________ I/O Threads __________________________
Thread  Purpose               Thread Status                     
     0  insert buffer thread  waiting for completed aio requests
     1  log thread            waiting for completed aio requests
     2  read thread           waiting for completed aio requests
     3  read thread           waiting for completed aio requests
     4  read thread           waiting for completed aio requests
     5  read thread           waiting for completed aio requests
     6  write thread          waiting for completed aio requests
     7  write thread          waiting for completed aio requests
     8  write thread          waiting for completed aio requests
     9  write thread          waiting for completed aio requests
____________________________ Pending I/O _____________________________
Async Rds  Async Wrt  IBuf Async Rds  Sync I/Os  Log Flushes  Log I/Os
                                   0          0            0         0
________________________ File I/O Misc _________________________
OS Reads  OS Writes  OS fsyncs  Reads/Sec  Writes/Sec  Bytes/Sec
   74180    2867756    2094872       0.00        0.00          0
_____________________ Log Statistics ______________________
Sequence No.  Flushed To   Last Checkpoint  IO Done  IO/Sec
75091882485   75091882485  75091882485      1829529    0.00


相关内容

热门资讯

今日重大消息“诸暨游戏究竟有挂... 网上科普关于“诸暨游戏有没有挂”话题很是火热,小编也是针对诸暨游戏作*弊开挂的方法以及开挂对应的知识...
李在明迁回青瓦台办公,30秒内... ◆12月29日,总统李在明首次在青瓦台上班。文丨关珺冉编辑丨漆菲时隔三年零七个月,韩国总统府重返“青...
终于了解“酷玩联盟究竟有挂吗?... 终于了解“酷玩联盟究竟有挂吗?”(外卦神器下载)您好,酷玩联盟这个游戏其实有挂的,确实是有挂的,需要...
今日重大消息“微信小程序掼蛋是... 网上科普关于“微信小程序掼蛋有没有挂”话题很是火热,小编也是针对微信小程序掼蛋作*弊开挂的方法以及开...
今日重磅消息“新众亿炸/金/花... 网上科普关于“新众亿炸/金/花有没有挂”话题很是火热,小编也是针对新众亿炸/金/花作*弊开挂的方法以...
【第一财经】“新毛豆互娱到底是... 【第一财经】“新毛豆互娱到底是不是挂?”(其实是有挂)您好,新毛豆互娱这个游戏其实有挂的,确实是有挂...
终于懂了“欢乐情怀开挂器?”(... 有 亲,根据资深记者爆料欢乐情怀是可以开挂的,确实有挂(咨询软件无需打开...
紫燕食品创新研究院:以科研赋能... 在消费升级驱动食品行业高质量发展的背景下,研发创新成为企业核心竞争力的关键支撑。作为卤味行业领军企业...
玩家攻略科普“桂麻圈怎么开挂?... 家人们!今天小编来为大家解答桂麻圈透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里买很多...
【第一消息】“海阔麻将到底是不... 有 亲,根据资深记者爆料海阔麻将是可以开挂的,确实有挂(咨询软件无需打开...