- MariaDB High Performance
- Pierre MAVRO
- 169字
- 2021-08-05 18:03:18
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/.
推薦閱讀
- Mastering Entity Framework Core 2.0
- 數(shù)字媒體應(yīng)用教程
- LabVIEW 2018 虛擬儀器程序設(shè)計
- 測試驅(qū)動開發(fā):入門、實戰(zhàn)與進(jìn)階
- PHP 7底層設(shè)計與源碼實現(xiàn)
- Responsive Web Design with HTML5 and CSS3
- 零基礎(chǔ)學(xué)Python數(shù)據(jù)分析(升級版)
- Python完全自學(xué)教程
- Unity Game Development Scripting
- .NET 3.5編程
- Scala Reactive Programming
- Mastering Business Intelligence with MicroStrategy
- HTML 5與CSS 3權(quán)威指南(第3版·上冊)
- Tableau Desktop可視化高級應(yīng)用
- Python數(shù)據(jù)科學(xué)實踐指南