I *don't* know how many files it has open. Rummaging in /proc/(pid)/fd shows that threads often have the same file open multiple times - does this count? There were just over 1500 items in the
We're fairly sure something is capping connections before it hits max_connections because under sustained load, the thread count in MySQL caps below max_connections. So it's running out of some other resource before connection threads. And when that happens, we get 'cannot create thread' errors - but that doesn't say *why* the thread can't be created. :-/
2
I'd love to move to one connection per Apache process. Unfortunately, that's a political fight, as I mentioned. The web server app is written in PHP so the equivalent is called pooled connections. The problem is that the CEO has access to MySQL's show processlist; pooled connections show up as idle threads in that and Apparantly That's Bad. However, MySQL is known for being fast at connection setup and teardown. So.
The reverse-proxy arrangement sounds interesting and would be something to try for.
Thanks for the thoughts.
Wade.