Last updated: August 28, 2026.
Too many connections is a capacity symptom, not automatically a reason to raise max_connections. Determine whether traffic increased, connections are leaking, or slow queries keep sessions occupied.
Inspect current usage
SHOW STATUS LIKE 'Threads_connected';
SHOW STATUS LIKE 'Max_used_connections';
SHOW VARIABLES LIKE 'max_connections';
SHOW FULL PROCESSLIST;
SELECT USER, HOST, COUNT(*) AS Connections
FROM information_schema.PROCESSLIST
GROUP BY USER, HOST
ORDER BY Connections DESC;Correct the cause
- Close application connections reliably.
- Use a bounded connection pool.
- Set realistic connect and idle timeouts.
- Optimize queries that remain active too long.
- Raise the server limit only after checking memory cost.
Reference: MySQL 8.4 too many connections guidance.