max_connections. MySQL, - (raw php, WordPress, phpBB), , , 60.
, , :
show global variables like '%connections%'
, :
show status like '%connected%'
, :
show full processlist
100 , . , . my.cnf MySQL. MySQL, .
MySQL. MySQL -, . . https://www.percona.com/blog/2014/07/29/prevent-mysql-downtime-set-max_user_connections/
. , - Apache . Apache, , , , . , Apache . , , , , . MySQL, . : Mysql , ubuntu EC2 micro
By the way, web applications like WordPress use a persistent connection pool. That is, they establish connections to the MySQL database, open them and reuse them. If your applications are busy, the lifetime of each connection should be a few minutes.
source
share