mysql重要的监控参数_zabbix3.0.2使用percona mysql插件来监控mysql5.7   以及必须监控的性能参数...

http://tongcheng.blog.51cto.com/6214144/1620158

http://www.cnblogs.com/caoxiaojian/p/5706992.html

http://blog.csdn.net/mchdba/article/details/51447750

对比zabbix全方位监控mysql,尤其注意以下监控项

MySQL InnoDB Buffer Pool

pool size

database pages    InnoDB Buffer Pool Pages Data

free pages    InnoDB Buffer Pool Pages Free

modified pages

MySQLTransactions Handler

handler commit  InnoDB Transaction Committing

handler rollback  InnoDB Transaction Rolling Back

handler savepoint

handler savepoint rollback

MySQLProcesslist

last("mysql.innodb[Innodb_node_heap_buffers]",0)*last("mysql.status[innodb_page_size]",0)

last("Qcache_used_blocks",0)/last("mysql.status[Qcache_queries_in_cache]",0)

last("Qcache_used_memory",0)/last("Qcache_used_blocks",0)

show processlist;

show full processlist;

show open tables;

show status like ‘%lock%’

show engine innodb status\G;

show variables like ‘%timeout%’;

1.线程池

thread_cache_size = 32

thread_stack = 512K

#innodb_file_io_threads = 8

innodb_thread_concurrency = 16

#thread_stack = 192K

#thread_concurrency = 128

2.zabbix

对比zabbix全方位监控mysql和Percona MySQL Server Template

尤其注意以下监控项

MySQL InnoDB Buffer Pool

pool size

database pages    InnoDB Buffer Pool Pages Data

free pages    InnoDB Buffer Pool Pages Free

modified pages

UserParameter=MySQL.pool-size,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh gq

UserParameter=MySQL.modified-pages,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh gt

UserParameter=MySQL.free-pages,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh gr

UserParameter=MySQL.database-pages,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh gs

MySQLTransactions Handler

handler commit  InnoDB Transaction Committing

handler rollback  InnoDB Transaction Rolling Back

handler savepoint

handler savepoint rollback

UserParameter=MySQL.Handler-rollback,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh mw

UserParameter=MySQL.modified-pages,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh gt

UserParameter=MySQL.Handler-savepoint-rollback,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh my

UserParameter=MySQL.Handler-savepoint,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh mx

UserParameter=MySQL.Handler-commit,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh mm

MySQLProcesslist

UserParameter=MySQL.State-updating,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh mi

UserParameter=MySQL.State-freeing-items,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh lt

UserParameter=MySQL.State-other,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh ml

UserParameter=MySQL.State-none,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh mk

UserParameter=MySQL.State-init,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh lu

UserParameter=MySQL.State-sorting-result,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh mg

UserParameter=MySQL.State-statistics,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh mh

UserParameter=MySQL.State-copying-to-tmp-table,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh lr

UserParameter=MySQL.State-end,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh ls

UserParameter=MySQL.State-login,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh lw

UserParameter=MySQL.State-reading-from-net,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh ly

UserParameter=MySQL.State-locked,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh lv

UserParameter=MySQL.State-sending-data,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh lz

UserParameter=MySQL.State-preparing,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh lx

UserParameter=MySQL.State-writing-to-net,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh mj

UserParameter=MySQL.State-closing-tables,/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh lq

5.6

last("mysql.innodb[Innodb_node_heap_buffers]",0)*last("mysql.status[innodb_page_size]",0)

last("Qcache_used_blocks",0)/last("mysql.status[Qcache_queries_in_cache]",0)

last("Qcache_used_memory",0)/last("Qcache_used_blocks",0)

last("mysql.status[Qcache_total_blocks]",0)-last("mysql.status[Qcache_used_blocks]",0)

5.7

show engine innodb status

..............................................

0 lock struct(s), heap size 1136, 0 row lock(s)

Hash table size 1593643, node heap has 273 buffer(s)

Hash table size 1593643, node heap has 3 buffer(s)

Hash table size 1593643, node heap has 21 buffer(s)

Hash table size 1593643, node heap has 54 buffer(s)

Hash table size 1593643, node heap has 71 buffer(s)

Hash table size 1593643, node heap has 119 buffer(s)

Hash table size 1593643, node heap has 203 buffer(s)

Hash table size 1593643, node heap has 82 buffer(s)

page

Pages flushed up to 55540154363

Database pages     314640

Old database pages 116191

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 22, not young 0

Pages read 314037, created 603, written 33877

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Database pages     39644

Old database pages 14633

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 2, not young 0

Pages read 39525, created 119, written 8064

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Database pages     38586

Old database pages 14240

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 19, not young 0

Pages read 38534, created 52, written 1809

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Database pages     39304

Old database pages 14526

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 1, not young 0

Pages read 39287, created 17, written 1287

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Database pages     39264

Old database pages 14497

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 0, not young 0

Pages read 39197, created 67, written 8073

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Database pages     39169

Old database pages 14461

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 0, not young 0

Pages read 39058, created 111, written 5199

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Database pages     39502

Old database pages 14601

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 0, not young 0

Pages read 39426, created 76, written 3084

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Database pages     39574

Old database pages 14623

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 0, not young 0

Pages read 39496, created 78, written 3300

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Database pages     39597

Old database pages 14610

Modified db pages  0

Pending writes: LRU 0, flush list 0, single page 0

Pages made young 0, not young 0

Pages read 39514, created 83, written 3061

Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s

Variable_name: Qcache_free_blocks

Variable_name: Qcache_free_memory

Variable_name: Qcache_hits

Variable_name: Qcache_inserts

Variable_name: Qcache_lowmem_prunes

Variable_name: Qcache_not_cached

Variable_name: Qcache_queries_in_cache

Variable_name: Qcache_total_blocks

3.触发器

4.lepus

已用连接,可用表缓存,打开文件句柄数

threads,QPS-TPS,DML sec

transaction sec commit,rollback

innodb io read and pages flush

innodb rows read

innodb rows dml

key buffer

network

aborted_clients,aborted_connects

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/547783.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Microsoft SQL Server 2005 提供了一些工具来监控数据库

--WL 09-07-03/*Microsoft SQL Server 2005 提供了一些工具来监控数据库。方法之一是动态管理视图。动态管理视图 (DMV) 和动态管理函数 (DMF) 返回的服务器状态信息可用于监控服务器实例的运行状况、诊断问题和优化性能。常规服务器动态管理对象包括:dm_db_*&#…

关于ORA-01187: cannot read from file because it failed verification tests 的处理方法

环境:OELOracle 11.2.0.3physical standby 问题描述:查询dba_temp_files试图时显示Ora-01187错误号; ORA-01187: cannot read from file because it failed verification tests ORA-01110: data file 201: /oradata/seven/temp01.dbf 重现下…

Kafka集群部署搭建完美标准版

Kafka集群部署并启动 在本文中将从演示如何搭建一个Kafka集群开始,然后简要介绍一下关于Kafka集群的一些基础知识点。但本文仅针对集群做介绍,对于Kafka的基本概念不做过多说明,这里假设读者拥有一定的Kafka基础知识。 首先,我们…

java字符流和字节流的区别_java字符流与字节流的区别是什么

java中字符流与字节流的区别:1、字节流操作的基本单元为字节;字符流操作的基本单元为Unicode码元。2、字节流默认不使用缓冲区;字符流使用缓冲区。3、字节流通常用于处理二进制数据,实际上它可以处理任意类型的数据,但…

IEPNGFix:Unclickable children of element 解决办法

以前我有写过一篇关于让IE6支持png半透明图片的方法,这期间这一神器一直发挥了很大的作用,并且没有出现过什么差错,直到昨天。 昨天同事做的一个项目因为设计图的关系,所以实现起来用到了很多position定位的属性,这里…

ASP.NET MVC 重点教程一周年版 第九回 HtmlHelper

许多时候我们会遇到如下场景 在写一个编辑数据的页面时&#xff0c;我们通常会写如下代码 1: <input type"text" value<%ViewData["title"] %> name"title" /> 由前篇我们所讲的Helper演化&#xff0c;我们思考&#xff0c;对于这种…

Tensorflow中查看gpu是否可用

Tensorflow中查看gpu是否可用 使用tf.test.is_gpu_available()函数可直接返回 import tensorflow as tf tf.test.is_gpu_available() Tensorflow测试程序 # Python import tensorflow as tf hello tf.constant(Hello, TensorFlow!) sess tf.Session() print(sess.run(hell…

websphere一直安装部署_WebSphere集群安装配置及部署应用说明

《WebSphere集群安装配置及部署应用说明》由会员分享&#xff0c;可在线阅读&#xff0c;更多相关《WebSphere集群安装配置及部署应用说明(27页珍藏版)》请在人人文库网上搜索。1、WebSphere6.1集群安装配置及部署应用说明1 安装Webphere1.1 安装WebSphere ND 6.11、 双击launc…

设置devenv命令的启动版本

机子上装了有vs 05、vs 08、vs 10如果按上顺序安装的话&#xff0c;在 运行 > devenv 就可以打开最新的vs10 工具&#xff0c;如果顺序是乱的话&#xff0c;就没那么幸运了&#xff0c;也就是说你最后安装的版本将会被你的 devenv 命令打开&#xff0c;原因是最后一次安装vs…

Yolov4训练自己的数据集

Yolov4训练自己的数据集 代码运行环境Ubuntu18.04python3.6显卡1080TiCUDA10.0cudnn7.5.1OpenCV3.4.6Cmake3.12.2&#xff0c;详细环境配置安装步骤就不讲解拉&#xff0c;网上教程一大堆。从github克隆下载源码&#xff0c;链接地址&#xff1a;https://github.com/AlexeyAB/…

[TED] Kinect控制的四翼直升机

超级精彩的demo&#xff0c;耐心看下去&#xff0c;越到后来越精彩。转载于:https://www.cnblogs.com/brucejia/archive/2013/06/14/3135206.html

vs 2010 不显示解决方案文件

vs 2010 不显示解决方案文件的问题早就遇到过&#xff0c;而且也能很容易的解决&#xff0c;唯独这次太郁闷了&#xff0c;先说说之前的我办法吧&#xff0c;像往常一样&#xff0c;在工具栏里面找到 >工具>选项>项目和解决方案>常规>勾中“总是显示解决方案”&…

debian 重启mysql_怎么重启MySQL服务,正确重启mysql

mysql> USE mysql; -- 切换到 mysql DBDatabase changedmysql> SELECT User, Password, Host FROM user; -- 查看现有用户,密码及允许连接的主机---------------------------| User | Password | Host |---------------------------| root | | localhost |--------------…

CentOS7 安装ownCloud

ownCloud的安装依赖LAMP环境&#xff0c;即 Linux Apache MySQL(Mariadb) PHP&#xff0c;所以在装owncloud前最好先装好这些&#xff0c;并且保证已经可用。 为了方便&#xff0c;本文在运行shell命令时都是以管理员用户身份运行&#xff08;root权限下运行&#xff09;&a…

Ajax跨子域

主页index.html的主要代码如下&#xff1a; <button οnclick"crossDomain();">开始跨域</button><div id"ajax"></div><iframe src"http://work.2fool.cn/crossdomain/iframe.html" id"iframe" style&quo…

关于阿拉伯数字转化成为大写汉字

public class MoneyUtil { /** 大写数字 */ private static final String[] NUMBERS { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" }; /** 整数部分…

javascript 复制功能 兼容所有浏览器的解决方案

代码如下&#xff1a; // 兼容所有浏览器function copyUrl(url) { if (navigator.userAgent.toLowerCase().indexOf(ie) > -1) { clipboardData.setData(Text, url); alert("该地址已复制到剪切板&#xff01;"); } else { prompt(&qu…

SQL Server 性能优化之——系统化方法提高性能

原文 http://www.cnblogs.com/BoyceYang/archive/2013/06/15/3138142.html 阅读导航 1. 概述 2. 规范逻辑数据库设计 3. 使用高效索引设计 4. 使用高效的查询设计 5. 使用技术分析低性能 6. 总结 1. 概述 在比较大的范围内找出能够大幅提高性能的区域&#xff0c;并且专注于分析…

yum搭建lnmp的最简单方法

相信有些刚刚接触web开发的小伙伴对于服务器上搭建web环境还不太了解&#xff0c;今天手把手教大家搭建lemp的线上环境&#xff0c;您需要做如下一些准备&#xff1a; 阿里云或者其他服务商的云主机一台云主机已安装Centos 7了解ssh、vim 好的&#xff0c;相信大家已经做好准备…

java opencv 平移_Java中使用opencv

Java中使用opencvJava中使用opencv零、前言作为图像处理出身&#xff0c;不仅仅要会C图像处理、matlab图像处理、python图像处理、最起码也得会java图像处理&#xff0c;当然我最终还都用的是opencv这个机器视觉库了。今天简单介绍一下java中如何使用opencv。一、配置库(1)官网…