mysql status threads_mysql的show status 中 thread 的含义?

本文介绍了MySQL中几个关键的线程状态变量:Threads_cached(线程缓存数量)、Threads_connected(当前打开连接数)、Threads_created(为处理连接创建的线程数)以及Threads_running(当前未挂起的连接数)。通过这些指标可以评估MySQL服务器的运行状况并进行调优。
摘要由CSDN通过智能技术生成

你的理解错了

Threads_cached:

The number of threads in the thread cache. This variable was added in MySQL 3.23.17.

Threads_connected:

The number of currently open connections.当前打开的连接数

Threads_created:

The number of threads created to handle connections. If Threads_created is big, you may want to increase the thread_cache_size value. The cache miss rate can be calculated as Threads_created divided by Connections. This variable was added in MySQL 3.23.31.

Threads_running:

The number of threads that are not sleeping.当前未挂起的连接数

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值