Online database to view allowed max_connections and currently used connections

Using the online links pulled by DBA in real time, we can see that there are many free connections in the database, and the pressure is very small. This part of the resources can be fully squeezed out.

 

2 Configuration of the maximum number of connections supported by the online database

busi_plat library

mysql> show global variables like '%max_con%';

+---------------------------------------+-------+

| Variable_name                         | Value |

+---------------------------------------+-------+

| max_connect_errors                    | 10    |

| max_connections                       | 5000  |

| performance_schema_max_cond_classes   | 80    |

| performance_schema_max_cond_instances | 1000  |

+---------------------------------------+-------+

4 rows in set (0.00 sec)

 

mysql> show processlist;

+---------+---------------+---------------------+-----------+-------------+----------+-----------------------------------------------------------------------+---------------------------------------------------------------+--

| Id      | User          | Host                | db        | Command     | Time     | State                                                                 | Info                                                          |

+---------+---------------+---------------------+-----------+-------------+----------+-----------------------------------------------------------------------+---------------------------------------------------------------+

|  741365 | replication   | 172.16.8.105:46001  | NULL      | Binlog Dump | 24882924 | Master has sent all binlog to slave; waiting for binlog to be updated | NULL                                                          |

| 7854050 | replication   | 172.16.10.176:33272 | NULL      | Binlog Dump |  2256605 | Master has sent all binlog to slave; waiting for binlog to be updated | NULL                                                          |

 

46 rows in set (0.00 sec)

-----------------------------------

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326856563&siteId=291194637