mysql> select * from performance_schema.global_status where variable_name like '%connection%' or variable_name like '%thread%';
+------------------------------------------+---------------------+
| VARIABLE_NAME | VARIABLE_VALUE |
+------------------------------------------+---------------------+
| Connection_errors_accept | 0 |
| Connection_errors_internal | 0 |
| Connection_errors_max_connections | 0 |
| Connection_errors_peer_address | 0 |
| Connection_errors_select | 0 |
| Connection_errors_tcpwrap | 0 |
| Connections | 48 |
| Delayed_insert_threads | 0 |
| Max_used_connections | 1 |
| Max_used_connections_time | 2021-06-11 10:19:39 |
| Performance_schema_thread_classes_lost | 0 |
| Performance_schema_thread_instances_lost | 0 |
| Slow_launch_threads | 0 |
| Threads_cached | 0 |
| Threads_connected | 1 |
| Threads_created | 1 |
| Threads_running | 1 |
+------------------------------------------+---------------------+
17 rows in set (0.03 sec)
Connection_errors_accept
调用accept()侦听端口期间发生的错误数 。
Connection_errors_internal
由于服务器内部错误而被拒绝的连接数,例如无法启动新线程或内存不足的情况。
Connection_errors_max_connections
由于max_connections达到服务器限制而被拒绝的连接数 。
Connection_errors_peer_address
搜索连接客户端 IP 地址时发生的错误数。
Connection_errors_select
在调用 侦听端口期间select()或poll()在侦听端口上发生的错误数 。(此操作失败并不一定意味着客户端连接被拒绝。)
Connection_errors_tcpwrap
libwrap库 拒绝的连接数 。
Connections
连接到 MySQL 服务器的尝试次数(成功与否)。
Delayed_insert_threads
此状态变量已弃用(因为 DELAYED不支持插入);希望在将来的版本中将其删除。
Max_used_connections
自服务器启动以来同时使用的最大连接数。
Max_used_connections_time
时间在其 Max_used_connections达到其当前值。
Slow_launch_threads
slow_launch_time 创建 时间超过秒的线程数 。
此变量在嵌入式服务器 ( libmysqld) 中没有意义,并且从 MySQL 5.7.2 开始,在嵌入式服务器中不再可见。
Threads_cached
线程缓存中的线程数。
此变量在嵌入式服务器 ( libmysqld) 中没有意义,并且从 MySQL 5.7.2 开始,在嵌入式服务器中不再可见。
Threads_connected
当前打开的连接数。
Threads_created
为处理连接而创建的线程数。如果 Threads_created很大,您可能希望增加该 thread_cache_size值。缓存未命中率可以计算为 Threads_created/ Connections。
Threads_running
未休眠的线程数。
718

被折叠的 条评论
为什么被折叠?



