我有一個數據庫服務器運行Percona Xtradb服務器和5個奴隸。我總是得到錯誤mysql錯誤:無法創建一個新的線程(errno 11)
mysql error: 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
雖然我設置ulimited
[email protected]:~# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 2062915
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1000000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 1000000
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[email protected]:~# cat /proc/`pidof mysqld`/limits | egrep "(processes|files)"Max processes 1000000 1000000 processes
Max open files 1000000 1000000 files
我真的不知道這是怎麼回事?請幫幫我。
也許是MySQL的線程限制是可配置的直通'的/ etc/mysql.conf'或'的/ etc/my.cnf' ... –
的最大線程數(過程其實在試圖創建新線程時,每個用戶(或系統範圍)都已達到。 – alk
它受到此問題的報告指出也可能是內存問題:http://bugs.mysql.com/bug.php?id=5656 – alk