Heim > Datenbank > MySQL-Tutorial > Innode引擎监控的开启的方法_MySQL

Innode引擎监控的开启的方法_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-01 13:31:15
Original
1341 Leute haben es durchsucht

bitsCN.com

Innode引擎监控的开启的方法

 

查看当前InnoDB引擎信息

mysql> show innodb status/G
Nach dem Login kopieren

开启InnoDB监控,有四种:

1. innodb_monitormysql> create table innodb_monitor(x int) engine=innodb;2. innodb_lock_monitormysql> create table innodb_lock_monitor(x int) engine=innodb;3. innodb_table_monitormysql> create table innodb_table_monitor(x int) engine=innodb;4. innodb_tablespace_monitormysql> create table innodb_tablespace_monitor(x int) engine=innodb;
Nach dem Login kopieren

打开监视器以后,

innodb_monitor和innodb_lock_monitor会每隔15秒会向错误日志中记录InnoDB监控信息,

innodb_table_monitor和innodb_tablespace_monitor是每隔64秒

innodb_monitor和innodb_lock_monitor两种监视器的输出结果基本类似,后者会有更多关于锁的信息,而前一个实际上就是show innodb status,

innodb_table_monitor会将系统中所有innodb的表的一些结构和内部信息输出,

innodb_tablespace_monitor输出的是tablespace的信息,注意该monitor输出的只是共享表空间的信息,如果使用innodb_file_per_table为每个表使用独立的表空间,则这些表空间的信息是不会包含在输出中的

停止InnoDB监控

mysql> drop table innodb_monitor;mysql> drop table innodb_lock_monitor;mysql> drop table innodb_table_monitor;mysql> drop table innodb_tablespace_monitor;
Nach dem Login kopieren

 

 

bitsCN.com
Verwandte Etiketten:
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Aktuelle Ausgaben
So ändern Sie MySQL in MySQL
Aus 1970-01-01 08:00:00
0
0
0
MySQL-Startfehler unter Centos
Aus 1970-01-01 08:00:00
0
0
0
MySQL stoppt den Prozess
Aus 1970-01-01 08:00:00
0
0
0
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage