程序重复报more than 'max_user_connections' active connections问题解决

时间:2022-06-25 06:51:21

早晨,开发扔过来一个问题,截图如下:

ums already has more than 'max_user_connections' active connections

程序重复报more than 'max_user_connections' active connections问题解决

查看数据库发现:

程序重复报more than 'max_user_connections' active connections问题解决

最大连接数为100,最大用户连接数为30.

程序重复报more than 'max_user_connections' active connections问题解决

而数据库里,此用户的最大连接数确实达到了阈值 30

设置:set global max_user_connections=90;

应用连接数突增到90.怀疑是应用的连接数设置得过大。

建议开发根据实际情况修改连接配置(左边的是原始值,右边的是修改后的值)如下:

程序重复报more than 'max_user_connections' active connections问题解决

连接数下降,问题解决。