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

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/.

主站蜘蛛池模板: 怀远县| 肥城市| 凤城市| 龙山县| 花垣县| 西城区| 石首市| 化隆| 方城县| 尼玛县| 长白| 新巴尔虎左旗| 广南县| 商都县| 萍乡市| 邵阳市| 东莞市| 天峨县| 定西市| 炎陵县| 丰顺县| 井研县| 五指山市| 贵定县| 望奎县| 开鲁县| 大理市| 资中县| 无锡市| 恭城| 钟山县| 瑞昌市| 策勒县| 舞阳县| 江口县| 宁化县| 西和县| 辉南县| 盐边县| 包头市| 思南县|