Bug #5656 | Can't create a new thread (errno 11) | ||
---|---|---|---|
Submitted: | 19 Sep 2004 20:20 | Modified: | 11 Oct 2004 3:57 |
Reporter: | Egor Egorov | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0.21 | OS: | Linux (Linux, kernel 2.6.8.1) |
Assigned to: | Lachlan Mulcahy | CPU Architecture: | Any |
[19 Sep 2004 20:20]
Egor Egorov
[11 Oct 2004 3:57]
Lachlan Mulcahy
This appears to be a problem with running out of memory rather than a bug. It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = (in your case) 384M + (64M + 2M)*1000 = 66384M You have your server configured to attempt to use up to around 66G of memory and there is only 1G+swap in the machine (even though you have swap, you never want to hit this on a DB server). You should reduce these values in line with the performance you require such that they do not exceed the maximum amount of memory available. (Remember that your OS and other processes will require memory too)
[11 Oct 2004 18:06]
Egor Egorov
SHAME ON ME. :-( Thank you, Lachlan.