mysql5.6status分类(三)

2015-07-24 07:31:43 · 作者: · 浏览: 3
。 也不包括存储引擎内部功能的相关文件。
| Opened_table_definitions | 已经缓存的.frm文件数量
| Opened_tables | 已经打开的表的数量。如果Opened_tables较大,table_cache 值可能太小。
| Table_open_cache_hits | MySQL 5.6.6中增加的参数,已打开的表缓存命中数
| Table_open_cache_misses | MySQL 5.6.6中增加的参数,已打开的表缓存未命中数
| Table_open_cache_overflows | MySQL 5.6.6中增加的参数,已打开的表缓存溢出数

13
预处理相关
| Prepared_stmt_count | 当前的预处理语句的数量。 (最大数为系统变量: max_prepared_stmt_count)

14
查询缓存相关状态
| Qcache_free_blocks | 查询缓存内自由内存块的数量。
| Qcache_free_memory | 用于查询缓存的自由内存的数量。
| Qcache_hits | 查询缓存被访问的次数。
| Qcache_inserts | 加入到缓存的查询数量。
| Qcache_lowmem_prunes | 由于内存较少从缓存删除的查询数量。
| Qcache_not_cached | 非缓存查询数(不可缓存,或由于query_cache_type设定值未缓存)。
| Qcache_queries_in_cache | 登记到缓存内的查询的数量。
| Qcache_total_blocks | 查询缓存内的总块数。

15
表扫面方法相关/索引扫描/顺序扫面/范围扫面等
| Select_full_join | 没有使用索引的联接的数量。如果该值不为0,你应仔细检查表的索引
| Select_full_range_join | 在引用的表中使用范围搜索的联接的数量。
| Select_range | 在第一个表中使用范围的联接的数量。一般情况不是关键问题,即使该值相当大。
| Select_range_check | 在每一行数据后对键值进行检查的不带键值的联接的数量。如果不为0,你应仔细检查表的索引。
| Select_scan | 对第一个表进行完全扫描的联接的数量。

16
复制时从服务器相关状态
| Slave_heartbeat_period | 复制的心跳间隔
| Slave_last_heartbeat |
| Slave_open_temp_tables | 从服务器打开的临时表数量
| Slave_received_heartbeats | 从服务器心跳数
| Slave_retried_transactions | 本次启动以来从服务器复制线程重试次数
| Slave_running | 如果该服务器是连接到主服务器的从服务器,则该值为ON。

17
慢查询相关状态
| Slow_launch_threads | 创建时间超过slow_launch_time秒的线程数。
| Slow_queries | 查询时间超过long_query_time秒的查询的个数。

18
排序相关状态
| Sort_merge_passes | 排序算法已经执行的合并的数量。如果这个变量值较大,应考虑增加sort_buffer_size系统变量的值。
| Sort_range | 在范围内执行的排序的数量。
| Sort_rows | 已经排序的行数。
| Sort_scan | 通过扫描表完成的排序的数量。

19
表锁相关
| Table_locks_immediate | 立即获得的表的锁的次数。
| Table_locks_waited | 不能立即获得的表的锁的次数。如果该值较高,并有性能问题,应首先优化查询,然后拆分表或使用复制。

20
XA事务日志相关
| Tc_log_max_pages_used | 事务协调器做内部XA事务恢复时,mysqld使用的日志的映射内存
| Tc_log_page_size | 日志XA事务恢复的映射内存实现用的页大小
| Tc_log_page_waits | 用于日志XA事务恢复的映射内存实现,增加每次服务器不能提交事务和必须等待日志中空闲页时间

21
处理线程相关
| Threads_cached | 线程缓存内的线程的数量。
| Threads_connected | 当前打开的连接的数量。
| Threads_created | 创建用来处理连接的线程数。如果Threads_created较大,你可能要增加thread_cache_size值。缓存访问率的计算方法Connections/Threads_created。
| Threads_running | 激活的(非睡眠状态)线程数。

22
运行相关
| Uptime | 服务器运行了多少秒。
| Uptime_since_flush_status | 最近一次使用FLUSH STATUS 的时间(以秒为单位)。
+-----------------------------------------------+-------------+
341 rows in set (0.00 sec)

23
数据库执行性能情况状态
mysql> show status like 'Performance_%';
+-----------------------------------------------+-------+
| Variable_name | Value |
+-----------------------------------------------+-------+
| Performance_schema_accounts_lost |
| Performance_schema_cond_classes_lost |
| Performance_schema_cond_instances_lost |
| Performance_schema_digest_lost |
| Performance_schema_file_classes_lost |
| Performance_schema_file_handles_lost |
| Performance_schema_file_instances_lost |
| Performance_schema_hosts_lost |
| Performance_schema_locker_lost |
| Performance_schema_mutex_classes_lost |
| Performance_schema_mutex_instances_lost |
| Performance_schema_rwlock_classes_lost |
| Performance_schema_rwlock_instances_lost |
| Performance_schema_session_connect_attrs_lost |
| Performance_schema_socket_classes_lost |
| Performance_schema_socket_instances_lost |
| Performance_schema_stage_classes_lost |
| Performance_schema_statement_clas