News for hackers. Stuff that matters.
Re:PHP 6: Pissing in the Wind by toast0 on Saturday January 26, 2013 @05:16PM (#5122012)
The error is that there are too many connections, not that it took too long to establish them. MySQL is generally pretty quick about establishing connections (although you can have issues w/ reverse DNS taking forever; it's best to turn that off and do access control by ips).

Ideally, a blog can be cached to static html (regen pages when owner adds an entry and if comments are self hosted, regen when a comment is added/approved). Even so, it looks like there are too many php processes running compared to mysql connections allowed; lowering the php processes will probably lead to better throughput than ramping up mysql connections.

Re:PHP 6: Pissing in the Wind by 0x0 on Saturday January 26, 2013 @05:39PM (#5122097)
Also, last I checked, at least Debian ships with an Apache max-workers setting greater than the MySQL max-connections setting out of the box, pretty much guaranteeing errors like these even on a single virtualhost under load.