Compare max connections with the peak so far
too many connections mysql | max_connections reached | mysql not enough connections | mysql | mariadb | connections | performancemysql -e "SHOW GLOBAL STATUS LIKE 'Max_used_connections'; SHOW GLOBAL VARIABLES LIKE 'max_connections';"Prints the maximum allowed number of simultaneous connections and the peak value since the last start. If the peak is at the limit, visitors see the error “Too many connections”. Then either raise the limit or look for the cause of the many open connections.
Note: Individual settings can generally be queried with SHOW GLOBAL VARIABLES LIKE 'name';.
Also searched as
- too many connections mysql
- max_connections reached
- mysql not enough connections