Home > Backend Development > PHP Tutorial > Mysql进程数与连接数的有何区别

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:48:48
Original
1548 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:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template