加入收藏 | 设为首页 | 会员中心 | 我要投稿 银川站长网 (https://www.0951zz.com/)- 云通信、基础存储、云上网络、机器学习、视觉智能!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

MySQL5.7 SYS Schema的功能框架视图参数有哪些

发布时间:2023-07-22 13:37:53 所属栏目:MySql教程 来源:
导读:本篇内容主要讲解“MySQL5.7 SYS Schema的性能框架视图参数有哪些”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“MySQL5.7 SYS Schema的性能框架视图

本篇内容主要讲解“MySQL5.7 SYS Schema的性能框架视图参数有哪些”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“MySQL5.7 SYS Schema的性能框架视图参数有哪些”吧!

1 host_summary 和 x$host_summary Views

视图显示了语句活动,文件io和连接信息,由host分组

2 host_summary_by_file_io 和 x$host_summary_by_file_io Views

视图总计了文件io,由host分组

3 host_summary_by_file_io_type 和 x$host_summary_by_file_io_type Views

视图总计了文件io,由host和event类型分组。

4 host_summary_by_stages 和 x$host_summary_by_stages Views

总计语句stage,由host分组

5 host_summary_by_statement_latency 和 x$host_summary_by_statement_latency Views

总计语句的统计信息,由host分组

6 host_summary_by_statement_type 和 x$host_summary_by_statement_type Views

总计语句的执行,由host和语句类型分组

7 innodb_buffer_stats_by_schema 和 x$innodb_buffer_stats_by_schema Views

统计information_schema.innodb_buffer_page,由schema分组,object_schema为对象的schema,如果为innodb表属于innodb system。

8 innodb_buffer_stats_by_table 和 x$innodb_buffer_stats_by_table Views

统计information_schema.innodb_buffer_page,由表名分组。

9 innodb_lock_waits 和 x$innodb_lock_waits Views

总计了innodb锁等待。列如下:

wait_started:等待开始事件。

wait_age:等待锁的时间长度。

wait_age_secs:等待了多少秒。

locked_table:被锁定的表。

locked_index:被锁的索引

locked_type:锁等待类型

waiting_trx_started:等待事务的开始事件。

waiting_trx_age:等待事务等待时间。

waiting_trx_rows_locked:等待事务锁定的行锁个数。

……

10 io_by_thread_by_latency 和 x$io_by_thread_by_latency Views

总计了IO消费者显示了线程的IO等待。

11 io_global_by_file_by_bytes 和 x$io_global_by_file_by_bytes Views

总计了IO消费者显示每个文件的读写量,由文件分组

12 io_global_by_file_by_latency 和 x$io_global_by_file_by_latency Views

总结io消费者显示io次数和延迟事件,由文件分组

13 io_global_by_wait_by_bytes 和 x$io_global_by_wait_by_bytes Views

每个event的总io字节。

14 io_global_by_wait_by_latency 和 x$io_global_by_wait_by_latency Views

每个event的总io次数和io等待时间

15 latest_file_io 和 x$latest_file_io Views

总计活动的文件IO,由文件和线程分组。

16 memory_by_host_by_current_bytes 和 x$memory_by_host_by_current_bytes Views

总计host使用的总内存

17 memory_by_thread_by_current_bytes 和 x$memory_by_thread_by_current_bytes Views

线程的内存使用

18 memory_by_user_by_current_bytes 和 x$memory_by_user_by_current_bytes Views

总计用户使用的内存

19 memory_global_by_current_bytes 和 x$memory_global_by_current_bytes Views

每个分配类型分配的内存

20 memory_global_total 和 x$memory_global_total Views

服务的总内存使用

21 metrics View

视图总计mysql服务的指标,显示变量名,变量值,类型和他们的启动情况。视图在mysql 5.7.9被添加,视图主要包含信息:

o 全局的状态变量,来至于global_status表。

o 来自information_schema.global_status.Innodb指标

o 当前和所有内存分配

o 当前时间

有一些在global_status和innodb_status中有重复的指标,metrics视图会进行消除。

22 processlist 和 x$processlist Views

比showprocesslist返回的信息更加详细

23 ps_check_lost_instrumentation View

返回丢失的性能框架记录点,显示是否性能框架可以跟踪所有数据。

24 schema_auto_increment_columns View

视图显示了有auto_increment的列,并且提供了有用的信息。

25 schema_index_statistics 和 x$schema_index_statistics Views

视图提供的所有统计信息

26 schema_object_overview View

schema下对象统计

27 schema_redundant_indexes 和 x$schema_flattened_keys Views

显示了冗余的索引

28 schema_table_lock_waits 和 x$schema_table_lock_waits Views

显示了哪些会话被元数据锁锁定,什么锁定了它们

29 schema_table_statistics 和 x$schema_table_statistics Views

表操作的统计,io和延迟的统计

30 schema_table_statistics_with_buffer 和 x$schema_table_statistics_with_buffer Views

表操作的统计,io和延迟的统计,和内存的分配

31 schema_tables_with_full_table_scans 和 x$schema_tables_with_full_table_scans Views

显示了哪些表被表扫描访问

32 schema_unused_indexes View

未使用过的索引

33 session 和 x$session Views

和processlist相似但是不显示后台进程

34 session_ssl_status View

对于每个连接显示SSL版本,chipher和count

35 statement_analysis 和 x$statement_analysis Views

显示了语句的执行情况,执行次数,响应行数,延迟等

36 statements_with_errors_or_warnings 和 x$statements_with_errors_or_warnings Views

语句的错误或者警告

37 statements_with_full_table_scans 和 x$statements_with_full_table_scans Views

用到了表扫描的语句

38 statements_with_runtimes_in_95th_percentile和x$statements_with_runtimes_in_95th_percentile Views

runtimes在95%以内的语句

39 statements_with_sorting 和 x$statements_with_sorting Views

执行了排序的语句

40 statements_with_temp_tables 和 x$statements_with_temp_tables Views

使用了临时表的语句

41 user_summary 和 x$user_summary Views

用户总计信息,包含语句,文件io,连接

42 user_summary_by_file_io 和 x$user_summary_by_file_io Views

用户文件io总计

43 user_summary_by_file_io_type 和 x$user_summary_by_file_io_type Views

用户文件io类型总计

44 user_summary_by_stages 和 x$user_summary_by_stages Views

用户stage事件总计

45 user_summary_by_statement_latency 和 x$user_summary_by_statement_latency Views

用户在执行语句上的延迟

46 user_summary_by_statement_type 和 x$user_summary_by_statement_type Views

用户在语句类型上的延迟

47 version View

版本

48 wait_classes_global_by_avg_latency 和 x$wait_classes_global_by_avg_latency Views

等待类型延迟汇总,由平均延迟排序

49 wait_classes_global_by_latency 和 x$wait_classes_global_by_latency Views

等待类型延迟汇总,由总延迟排序

50 waits_by_host_by_latency 和 x$waits_by_host_by_latency Views

host,等待事件延迟汇总

51 waits_by_user_by_latency 和 x$waits_by_user_by_latency Views

用户等待事件延迟

52 waits_global_by_latency 和 x$waits_global_by_latency Views

等待事件延迟。

到此,相信大家对“MySQL5.7 SYS Schema的性能框架视图参数有哪些”有了更深的了解,不妨来实际操作一番吧!

(编辑:银川站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章