• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • 监视X插件

    本节介绍如何监视X插件。使用性能模式表或状态变量,有两种可用的监视方法。

    X插件的状态变量

    状态变量具有以下含义。

    • Mysqlx_aborted_clients

      由于输入或输出错误而断开连接的客户端数。

    • Mysqlx_address

      X插件绑定到的网络地址。如果绑定失败,或者使用了skip_networking选项,则该值将显示UNDEFINED

    • Mysqlx_bytes_received

      通过网络接收的字节总数。如果将压缩用于连接,则此图包括在解压缩(Mysqlx_bytes_received_compressed_payload)之前测量的压缩消息有效负载,未压缩的压缩消息中的任何项目(例如X协议标头)以及任何未压缩的消息。

    • Mysqlx_bytes_received_compressed_payload

      在解压缩之前测量的作为压缩消息有效负载接收的字节数。

    • Mysqlx_bytes_received_uncompressed_frame

      在解压缩后测得的作为压缩消息有效负载接收的字节数。

    • Mysqlx_bytes_sent

      通过网络发送的字节总数。如果将压缩用于连接,则此图包括在压缩(Mysqlx_bytes_sent_compressed_payload)之后测量的压缩消息有效负载,未压缩的压缩消息中的任何项目(例如X协议标头)以及任何未压缩的消息。

    • Mysqlx_bytes_sent_compressed_payload

      作为压缩消息有效负载发送的字节数,在压缩后测量。

    • Mysqlx_bytes_sent_uncompressed_frame

      作为压缩消息有效负载发送的字节数,在压缩前进行了测量。

    • Mysqlx_compression_algorithm

      (会话范围)此会话的X协议连接中使用的压缩算法。允许的压缩算法由mysqlx_compression_algorithms系统变量列出。

    • Mysqlx_compression_level

      (会话范围)此会话的X协议连接使用的压缩级别。

    • Mysqlx_connection_accept_errors

      导致接受错误的连接数。

    • Mysqlx_connection_errors

      导致错误的连接数。

    • Mysqlx_connections_accepted

      接受的连接数。

    • Mysqlx_connections_closed

      已关闭的连接数。

    • Mysqlx_connections_rejected

      已被拒绝的连接数。

    • Mysqlx_crud_create_view

      收到的创建视图请求数。

    • Mysqlx_crud_delete

      收到的删除请求数。

    • Mysqlx_crud_drop_view

      收到的下拉视图请求的数量。

    • Mysqlx_crud_find

      收到的查找请求数。

    • Mysqlx_crud_insert

      收到的插入请求数。

    • Mysqlx_crud_modify_view

      收到的修改视图请求数。

    • Mysqlx_crud_update

      收到的更新请求数。

    • Mysqlx_cursor_close

      收到的关闭游标消息的数量

    • Mysqlx_cursor_fetch

      收到的游标提取消息数

    • Mysqlx_cursor_open

      收到的打开游标的消息数

    • Mysqlx_errors_sent

      发送给客户端的错误数。

    • Mysqlx_expect_close

      已关闭的期望块数。

    • Mysqlx_expect_open

      打开的期望块数。

    • Mysqlx_init_error

      初始化期间的错误数。

    • Mysqlx_notice_global_sent

      发送给客户端的全局通知数。

    • Mysqlx_notice_other_sent

      发送给客户的其他类型的通知数。

    • Mysqlx_notice_warning_sent

      发送回客户端的警告通知的数量。

    • Mysqlx_notified_by_group_replication

      发送给客户端的组复制通知数

    • Mysqlx_port

      X插件正在侦听的TCP端口。如果网络绑定失败,或者skip_networking启用了系统变量,则该值将显示UNDEFINED

    • Mysqlx_prep_deallocate

      收到的准备状态解除分配消息的数量

    • Mysqlx_prep_execute

      接收到的准备语句执行消息的数量

    • Mysqlx_prep_prepare

      收到的准备陈述式消息的数量

    • Mysqlx_rows_sent

      发送回客户端的行数。

    • Mysqlx_sessions

      已打开的会话数。

    • Mysqlx_sessions_accepted

      已接受的会话尝试次数。

    • Mysqlx_sessions_closed

      已关闭的会话数。

    • Mysqlx_sessions_fatal_error

      因致命错误而关闭的会话数。

    • Mysqlx_sessions_killed

      被杀死的会话数。

    • Mysqlx_sessions_rejected

      被拒绝的会话尝试次数。

    • Mysqlx_socket

      X插件正在监听的Unix套接字。

    • Mysqlx_ssl_accept_renegotiates

      建立连接所需的谈判数量。

    • Mysqlx_ssl_accepts

      接受的SSL连接数。

    • Mysqlx_ssl_active

      如果SSL处于活动状态。

    • Mysqlx_ssl_cipher

      当前的SSL密码(非SSL连接为空)。

    • Mysqlx_ssl_cipher_list

      可能的SSL密码列表(非SSL连接为空)。

    • Mysqlx_ssl_ctx_verify_depth

      当前在ctx中设置的证书验证深度限制。

    • Mysqlx_ssl_ctx_verify_mode

      当前在ctx中设置的证书验证模式。

    • Mysqlx_ssl_finished_accepts

      到服务器的成功SSL连接数。

    • Mysqlx_ssl_server_not_after

      SSL证书有效的最后日期。

    • Mysqlx_ssl_server_not_before

      SSL证书有效的第一个日期。

    • Mysqlx_ssl_verify_depth

      SSL连接的证书验证深度。

    • Mysqlx_ssl_verify_mode

      SSL连接的证书验证模式。

    • Mysqlx_ssl_version

      用于SSL连接的协议的名称。

    • Mysqlx_stmt_create_collection

      收到的创建收集语句的数量。

    • Mysqlx_stmt_create_collection_index

      收到的创建集合索引语句的数量。

    • Mysqlx_stmt_disable_notices

      收到的禁用通知语句的数量。

    • Mysqlx_stmt_drop_collection

      收到的Drop Collection语句数。

    • Mysqlx_stmt_drop_collection_index

      接收到的Drop Collection索引语句的数量。

    • Mysqlx_stmt_enable_notices

      收到的启用通知声明的数量。

    • Mysqlx_stmt_ensure_collection

      收到的确保收集声明的数量。

    • Mysqlx_stmt_execute_mysqlx

      收到的命名空间设置为的StmtExecute消息数mysqlx

    • Mysqlx_stmt_execute_sql

      SQL名称空间收到的StmtExecute请求的数量。

    • Mysqlx_stmt_execute_xplugin

      收到的xplugin名称空间的StmtExecute请求数。从MySQL 8.0.19起,xplugin名称空间已删除,因此不再使用此状态变量。

    • Mysqlx_stmt_get_collection_options

      收到的get集合对象语句的数量。

    • Mysqlx_stmt_kill_client

      收到的终止客户端语句的数量。

    • Mysqlx_stmt_list_clients

      收到的列表客户端语句的数量。

    • Mysqlx_stmt_list_notices

      收到的列表通知语句的数量。

    • Mysqlx_stmt_list_objects

      收到的列表对象语句的数量。

    • Mysqlx_stmt_modify_collection_options

      收到的修改收集选项语句的数量。

    • Mysqlx_stmt_ping

      收到的ping语句数。

    • Mysqlx_worker_threads

      可用的工作线程数。

    • Mysqlx_worker_threads_active

      当前使用的工作线程数。