Bug #68357 | Mysqld not releasing memory | ||
---|---|---|---|
Submitted: | 13 Feb 2013 9:04 | Modified: | 19 Mar 2013 18:52 |
Reporter: | Kurt Agius | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.5.29-0ubuntu0.12.04.1-log | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[13 Feb 2013 9:04]
Kurt Agius
[13 Feb 2013 9:23]
Hartmut Holzgraefe
Memory can also be allocated for things like implicit temporary tables needed for grouping / sorting ... Also once allocated memory can usually not be returned to the OS unless it is at the very top of the heap (memory fragmentation), so a server process will usually never shrink. It should reach a peak size after a while though as freed memory gets reused internally. If on the other hand it grows indefinitely instead of reaching a steady peak you may be hitting a real memory leak ...
[13 Feb 2013 10:20]
Kurt Agius
To be honest i saw it growing above peak twice because and it was swapping so hard that i had to restart mysql immediately. But i didn't really take a chance again to see if it keeps on growing above peak because i prefer to avoid that kind of situation. Is there any other way to check what's really going on ? I mean, if it's really a memory leak, how can i prove it so i can provide enough information so the issue can be fixed ?
[13 Feb 2013 13:46]
MySQL Verification Team
5.5.30 has a few memory leak bugs fixed that exist in 5.5.29. Also, disable performance_schema as it will not help you track memory usage (and might consume some). Then, please upload my.cnf, as well as periodic outputs of how much the mysqld process consumes over time..
[18 Feb 2013 12:52]
Kurt Agius
Agreed, i should upgrade to version 5.5.30 first. Small question (maybe out of topic, if yes i will figure it out somewhere else): Anybody knows how linux upgrades packages ? What i mean is that usually (like in this case) i check the latest version from apt-get for a package (in this case mysql) and the latest version is version 5.5.29 but i know that there's version 5.5.30 available. I try to avoid compiling it manually, so later i can continue with normal updates, but maybe compiling it manually is the best option. Thanks for your help.
[19 Feb 2013 18:52]
Sveta Smirnova
Thank you for the feedback. Please upgrade and provide information which Shane requested. Regarding to upgrade, please use our version available from http://dev.mysql.com/downloads/ You don't need to compile anything, simply use eitehr Debian Linux or Generic Linux binary package.
[20 Mar 2013 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".