mysql监控工具之innotop

innotop是一个通过文本模式显示MySQL和InnoDB存储引擎的监测工具。innotop是用perl语言开发,这是它能更加灵活的使用在各种操作平台之上,它能详细的的监控出当前mysql和innodb存储引擎运行的状态,以便维护人员根据结果合理的优化数据库,让数据库更稳定更高效的运行.innotop依赖于系统的perl-ExtUtils-MakeMaker软件包.

1.安装perl依赖包

[[email protected] ~]# yum install perl-ExtUtils-MakeMaker

[[email protected] ~]# rpm -aq | grep perl-ExtUtils-MakeMaker
perl-ExtUtils-MakeMaker-6.55-136.el6_6.1.x86_64
[[email protected] ~]#

2.下载安装innotop监控工具

[[email protected] ~]# wget http://innotop.googlecode.com/files/innotop-1.9.0.tar.gz

[[email protected] ~]# tar xvf innotop-1.9.0.tar.gz -C /usr/local/

[[email protected] ~]# cd /usr/local/innotop-1.9.0/
[[email protected] innotop-1.9.0]# perl Makefile.PL

[[email protected] innotop-1.9.0]# make install
cp innotop blib/script/innotop
/usr/bin/perl -MExtUtils::MY -e ‘MY->fixin(shift)‘ -- blib/script/innotop
Manifying blib/man1/innotop.1
Installing /usr/local/share/man/man1/innotop.1
Installing /usr/local/bin/innotop
Appending installation info to /usr/lib64/perl5/perllocal.pod
[[email protected] innotop-1.9.0]# echo $?
0
[[email protected] innotop-1.9.0]#

3.innotop使用帮助和监控实例

[[email protected] innotop-1.9.0]# ./innotop  --help
Usage: innotop <options> <innodb-status-file>

--[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

innotop is a MySQL and InnoDB transaction/status monitor, like ‘top‘ for
MySQL.  It displays queries, InnoDB transactions, lock waits, deadlocks,
foreign key errors, open tables, replication status, buffer information,
row operations, logs, I/O operations, load graph, and more.  You can
monitor many servers at once with innotop.

[[email protected] innotop-1.9.0]# ./innotop  -u root -psystem -h localhost -S /tmp/mysql.sock

[RO] Dashboard (? for help)                                                                                             localhost, 8d, 0.00 QPS, 1/1/0 con/run/cac thds, 5.7.4-m14-log

Uptime  MaxSQL  ReplLag  Cxns  Lock  QPS   QPS  Run  Run  Tbls  Repl  SQL
    8d                      1     0  0.00                  104  Off

时间: 2024-07-29 15:48:17

mysql监控工具之innotop的相关文章

MySQL监控利器-Innotop

Innotop是一款十分强大的MySQL监控工具,用perl所写,通过文本模式展示MysQL服务器和Innodb的运行状况. 安装innotop 下载地址:https://github.com/innotop/innotop Github上提供两种版本,一种是开发版(innotop-master),一种是稳定版(innotop-gtid).在这里,我们使用的是开发版. 注意:网上提供的下载地址是http://code.google.com/p/innotop/,但这个是原先的维护地址,该项目现已

Mysql监控工具小集合

介绍一些常见的Mysql监控工具. Cacti Cacti是 一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具.它通过snmpget来获取数据,使用 RRDtool绘画图形,而且你完全可以不需要了解RRDtool复杂的参数.它提供了非常强大的数据和用户管理功能,可以指定每一个用户能查看树状结 构.host以及任何一张图,还可以与LDAP结合进行用户验证,同时也能自己增加模板,功能非常强大完善,界面友好. MysqlReport MysqlReport 实际上只是

开发同学的福利--mysql监控工具sqlprofiler,类似sqlserver的profiler工具

最近无意发现了mysql的客户端监控工具“Nero Profile SQL”,刚开始还不知道怎么使用,经过半小时摸索,现将使用步骤写下来. 背景:开发的时候,如果数据存储层这块使用EF,或者其他orm框架,数据库是mysql,想知道最终执行的sql语句,那么这款工具就帮你忙了. 1.去官网下载安装windows版本http://www.profilesql.com/download/ 2.安装完成,连接mysql数据库 3.修改程序里面的连接字符串 我的理解是,Nero Profile SQL工

MoNyog 5.72 mysql监控工具的介绍

MoNyog这款web端的mysql监控软件很好用. 具体就不给大家安利了. 直接贴百度网盘的下载地址:https://qdcu01.baidupcs.com/file/419603905dcca568ce6ad4c5927b0d2b?bkt=p2-nj-922&fid=4094912105-250528-1004876217482528&time=1466936855&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-boIfFx

MySQL监控工具

1..Spotlight on mysql 客户端工具,有漂亮的ui界面,可以监控到mysql的io.qcache.连接数.buffer pool等等,还有预警的功能 2.Lepus[用的较多] 一个开源的国产监控平台,可以监控到mysql的慢查询. qcache.连接数.buffer pool等等,可以同时监控多台,配置多个实例即可3.Zabbix 也是一个开源的监控平台,和lepus类似,配置比较复杂

MySQL监控工具-orzdba

源代码地址:http://code.taobao.org/p/orzdba/src/trunk/     [[email protected] servers]# chmod +x orzdba 在代码的160行左右,配置自己的MySQL验证信息:username.password.socket.host.port[[email protected] servers]# grep -n 'my $MYSQL' orzdba160:my $MYSQL    = qq{mysql -s --skip

MySQL监控工具-orztop

先安装orzdba,链接:http://blog.itpub.net/28939273/viewspace-1875895/ 安装依赖的包:[[email protected] servers]# yum install perl-TermReadKey.x86_64 否则报错如下:[[email protected] servers]# ./orztop -u=root -p='yoon' -S=/export/data/mysql/tmp/mysql.sockCan't locate Ter

mysql监控工具之percona-toolkit集合

1.下载安装percona-toolkit软件 [[email protected] ~]# wget http://www.percona.com/downloads/percona-toolkit/2.2.13/deb/percona-toolkit_2.2.13.tar.gz [[email protected] ~]# tar xvf percona-toolkit_2.2.13.tar.gz  -C /usr/local/ [[email protected] ~]# cd /usr/

mysql 监控工具monyog使用总结

1. 下载安装 2. 登录之后,查看 locked queries 2. 慢查询