mysql里show full processlist,进程很少
黄舟
黄舟 2017-04-17 15:14:42
0
1
752

APP和网站每时每刻都有人在访问,只是量不多,但在mysql里show full processlist,却只有几个进程,这是什么原因?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
洪涛

MySQL storage engine belongs to or supports MVCC, supports concurrency and I/O multiplexing. It is thought that the client communicates with the mysql client in the form of a TCP connection. Under normal circumstances, the client will use the already established connection and will not create a new connection every time SQL is executed (from the perspective of resources and efficiency). If the instantaneous traffic is large, the client should create multiple connections to implement asynchronous non-blocking processing in this form. Each TCP connection will have a disconnect waiting time. If it has not been used by this time, it will be destroyed. , show full processlist actually sees these connections. These are the functions of the client mysql plug-in connection pool.

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!