Bug #43952 | client aborted due to insufficient memory despite lots of memory available | ||
---|---|---|---|
Submitted: | 30 Mar 2009 7:40 | Modified: | 1 Dec 2009 11:42 |
Reporter: | Andreas Bourges | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.67 | OS: | Linux (SLES 9) |
Assigned to: | CPU Architecture: | Any |
[30 Mar 2009 7:40]
Andreas Bourges
[6 Nov 2009 17:05]
Valeriy Kravchuk
I think the reason is simple: you allow to big temporary variables to be hold in memory. Look: | max_heap_table_size | 536870912 tmp_table size is the same. So, you can use up to 512M of memory per temporary table. Very few of them needed to get out of memeory situation even with your 16G or so of RAM. Please, check.
[1 Dec 2009 9:08]
Andreas Bourges
solution is not that simple: this behaviour is related to memory fragmentation. We purchased mysql support in the meantime and after several month we finally found the solution: upgrade to newer kernel see internal ticket [#38218] @ support.mysql.com
[1 Dec 2009 11:42]
Valeriy Kravchuk
So, this problem was not a result of any bug in MySQL code.