当前位置:网站首页>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.
边栏推荐
- Is it safe to open an account in the school of Finance and business?
- MySQL第四章总结
- MySQL 11th job - view application
- 挖财商学院证券开户安全嘛?
- Expand and collapse too high div
- RDB persistence validation test
- The difference between NPM and yarn
- Common regular expressions - tool classes (mobile number, email, QQ, fax)
- 服务器单、双向可调一键互信脚本!
- Is it safe to use flush mobile phones to speculate in stocks? How to fry stocks with flush
猜你喜欢

MySQL 11th job - view application

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

Express (I) - easy to get started

ISO 26262之——2功能安全概念

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

Renesas electronics launched a complete intelligent sensor solution for Internet of things applications

MySQL第十三次作业-事务管理

See how I store integer data in the map < string, string > set

Reshape a two-dimensional array with 3 rows and 3 columns to find the sum of the diagonals

Selection of webrtc video codec type VP8 H264 or other? (openh264 encoding, ffmpeg decoding)
随机推荐
Global and Chinese market of electronic pet door 2022-2028: Research Report on technology, participants, trends, market size and share
consul微服务治理中心踩坑
About multi table query of MySQL
【在线仿真】Arduino UNO PWM 控制直流电机转速
How QT uses quazip to compress and decompress files
The sixth MySQL job - query data - multiple conditions
Oracle sqlplus 查询结果显示优化
Bit operation n & (n-1), leetcode231, interview question 05.06
Getting started with postman
MySQL第十次作业-视图
Redis中执行Lua脚本
Easyexcel - Excel read / write tool
Progressive web application PWA is the future of application development
Common interview questions of binary tree
Oracle11g 启动数据库时报错 ORA-27154: post/wait create failed
The fourteenth MySQL operation - e-mall project
Jasperreports - print PDF (project tool)
See how I store integer data in the map < string, string > set
Flutter与原生通信(上)
Update mysql5.6 to 5.7 under Windows