Revisiting the MySQL 100K Connections Problem on Linux

At $WORK we were running a MySQL setup that required an unusually large number of concurrent connections. Most of them were idle. Only a few dozen connections were running queries. The total number of connections was around twelve thousand and was growing slowly. When the total number of connections reached close to 12,200, things started to break. New clients could no longer connect to the database. The error in the MySQL log was: ...