当前位置:网站首页>MySQL performance monitoring and SQL statements
MySQL performance monitoring and SQL statements
2022-06-26 10:48:00 【BOGO】
1、 The query cache :
mysql> show variables like '%query_cache%';2、 cached Cache Number of threads in thread_cache_size:
mysql> show variables like 'thread%';3、DB Number of threads connected :
mysql> show status like 'connections';4、 Current connection thread status :
mysql> show status like '%thread%';5、 Index cache size :
mysql> show variables like 'key_buffer_size';6、 Index cache miss rate :
mysql> show global status like 'key_read%';7、 Index cache hit rate :
mysql> show global status like 'key_%';8、 Index read Statistics :
mysql> show global status like 'key_blocks_u';key_blocks_unused Represents an unused cache cluster (blocks) Count ,key_blocks_used That's the largest that's ever been used blocks, If the cache is used , Either increase key_buffer_size, Or over indexing , The cache is full .
9、 Maximum concurrent connections - Maximum connections allowed ( commonly 500 To 800 More appropriate ):
mysql> show variables like 'max_connections';10、 Maximum concurrent connections - The server responded to the maximum number of connections :
mysql> show global status like 'max_used_connections';11、 Maximum concurrent connections - Current connections :
mysql> show global status like 'connections';12、 Maximum concurrent connections - The thread queue ( The smaller the value, the better ):
mysql> show variables like 'back_log';13、 A temporary table :
mysql> show global status like 'created_tmp%';The temporary table is too large to use disk files when the memory is completed , If 'created_tmp_tables A very large , There may be too many sorting operations in the system , Or the table connection method is not optimized enough .
14、mysql Server configuration of temporary tables :
mysql> show variables where variable_name in ('temp_able_siae','max_heap_table_size');When the temporary table space is smaller than max_heap_table_size when , Can all be put into memory .
15、 Table scan :
mysql> show global status like 'handler_read%';
mysql> show global status like 'com_select';If the table scan rate exceeds 4000, Description too many table scans , Maybe the index is not built , increase read_buffer_size Value will be good , But don't check 8M.
边栏推荐
猜你喜欢

SSH, SCP command appears permission denied, please try again solution

JS take the date of the previous month 【 pit filling 】

DBSCAN

MySQL第十四次作业--电子商城项目
![[work details] March 18, 2020](/img/24/a72230daac08e7ec5bd57df08071f8.jpg)
[work details] March 18, 2020

Opencv image processing - grayscale processing

開發者,微服務架構到底是什麼?

Hcia-dhcp experiment

Based on Zeng Shen's explanation, the line segment tree is studied again one

MySQL第十一作業-視圖的應用
随机推荐
MySQL project 8 summary
MySQL第四章总结
Easyexcel - Excel read / write tool
工程数学概率论统计简明教程第二版复习大纲
Matrix fast power notes
AIX基本操作记录
SSH, SCP command appears permission denied, please try again solution
Common interview questions of binary tree
DBSCAN
Write data to local file
MySQL第十一作业-视图的应用
AIX basic operation record
MySQL Chapter 6 Summary
MySQL Chapter 4 Summary
Oracle sqlplus query result display optimization
Installing MySQL under Linux [details]
Progressive web application PWA is the future of application development
MySQL backup and restore command
jwt认证协议阐述之——我开了一家怡红院
SQL index learning notes