Mysql进程数与连接数的有何区别

WBOY
Release: 2016-06-06 20:48:48
Original
1456 people have browsed it

如何统计Mysql进程数,又怎么样统计Mysql连接数,进程数与连接数啥区别

回复内容:

如何统计Mysql进程数,又怎么样统计Mysql连接数,进程数与连接数啥区别

mysqladmin -uuser -ppasswd status; 中的 Threads 表示的是当前 mysql连接数
ps -axef | grep mysqld -c;值-2(-1)就是进程数了

线程数由变量max_connections设定 进程数就是启动了多少个mysql(好吧,有点牵强)

最直观的解释就是:连接数就是线程数量 ,进程数就是:进程数量

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!