Recently some of my fellow Perconians and I have noticed a bit of
an uptick in customer cases featuring the following error
message:
SQLSTATE[HY000] [1135] Can't create a new thread (errno 11); if you are not
out of available memory, you can consult the manual for a possible OS-dependent bug.
The canonical solution to this issue, if you do a bit of
Googling, is to increase the number of processes / threads
available to the MySQL user, typically by adding a line like this
to /etc/security/limits.conf:
mysql soft nproc 4096
followed up by a restart of MySQL in a fresh user session. If
you’re running RHEL/CentOS 5, Ubuntu, or versions of Fedora prior
to Fedora 9, this solution will most likely solve your problem.
But with RHEL/CentOS 6 (and derivatives) and Fedora 9 and later,
you’ll likely find that this tweak no longer works.
In Fedora 9 and RHEL 6, a “bug fix” was introduced which was …
[Read more]