官术网_书友最值得收藏!

Performance schema

In Version 5.5.3, you can use the performance_schema monitoring feature of MariaDB to monitor performance. It has been implemented as an engine (that's why you can see it on a show engines command) with a database that stores data performance.

To activate the performance schema, add this line to your my.cnf configuration file:

performance_schema=on

You can then check whether it has been correctly activated:

MariaDB [(none)]> SHOW VARIABLES LIKE 'performance_schema';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| performance_schema | ON |
+--------------------+-------+
1 row in set (0.00 sec)

You can now list the complete table list to see the available monitoring features:

MariaDB [(none)]> USE PERFORMANCE_SCHEMA;
MariaDB [performance_schema]> show tables;
+----------------------------------------------------+
| Tables_in_performance_schema |
+----------------------------------------------------+
| accounts |
| cond_instances |
| events_stages_current |
[...]
| table_lock_waits_summary_by_table |
| threads |
| users |
+----------------------------------------------------+
52 rows in set (0.00 sec)

You can get a complete list of all the features in the MariaDB documentation at https://mariadb.com/kb/en/list-of-performance-schema-tables/.

主站蜘蛛池模板: 兰考县| 永川市| 长海县| 铜川市| 明水县| 屏东市| 建阳市| 历史| 松溪县| 镇远县| 句容市| 杨浦区| 灵宝市| 吴堡县| 兰考县| 津市市| 怀化市| 德昌县| 元阳县| 内乡县| 苍梧县| 大英县| 宣汉县| 深圳市| 达州市| 台前县| 茶陵县| 定陶县| 仁化县| 德化县| 辉南县| 沁水县| 石柱| 巴彦淖尔市| 六盘水市| 合江县| 赣州市| 宜君县| 华容县| 邢台县| 桓台县|