Bug #65074 | MySQL Server memory usage grew up and never shrunk | ||
---|---|---|---|
Submitted: | 23 Apr 2012 12:32 | Modified: | 13 Nov 2014 14:59 |
Reporter: | Seunguck Lee | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.5.23 | OS: | Linux (CentOS release 5.6 (Final)) |
Assigned to: | CPU Architecture: | Any |
[23 Apr 2012 12:32]
Seunguck Lee
[23 Apr 2012 12:54]
Valeriy Kravchuk
Do you real tables also have TEXT/BLOB columns? Please, send the output of SHOW TABLE STATUS for any of tables that demonstrate the problem, and the output of SHOW ENGINE INNODB STATUS when you see memory growth.
[23 Apr 2012 13:17]
Seunguck Lee
show engine innodb status
Attachment: show_engine_innodb_status.txt (text/plain), 9.45 KiB.
[23 Apr 2012 13:17]
Seunguck Lee
Yes, tables of real service has TEXT column. Actually our real service mysql is 5.5.20, So I tested mysql 5.5.23 with sysbench. And I found mysql 5.5.23 show the same symptoms. Attached file is MySQL 5.5.20's innodb engine status. Thanks.
[23 Apr 2012 13:36]
Valeriy Kravchuk
See bug #57480 also about fixes for similar cases that are made in 5.5.21+.
[24 Apr 2012 2:08]
Seunguck Lee
Yes, I've seen the bug report. And I already tested this case with mysql 5.5.23. But MySQL Server's memory usage is too high. MySQL Server memory usage is over 36GB (Innodb buffer pool 18GB + ?), when sysbench is running with connection 4000 and 1000 tables. I don't understand why mysql server need another 18GB memory. And memory usage is increasing during test. (It could be because table cache is not warmed-up fully) Anyway, to shrink mysql server's memory usage, we need to run "FLUSH TABLES". But "FLUSH TABLEs" command need a lot of time, furthermore "FLUSH TABLEs" make another session's query waiting. I'm wondering Is there any way to shrink memory usage without "FLUSH TABLES". Thanks.
[25 Apr 2012 6:39]
Valeriy Kravchuk
I do not see huge memory use for InnoDB dictionary, so this may have something to do with table cache (as FLUSH TABLES helpes). Can you try to run the same test and check memory usage with, say: table_open_cache = 128
[26 May 2012 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".
[12 Jun 2014 10:01]
Matteo Porru
I can experience a similar behavior on rel. 5.6.17. Still I have many partitions (2000) and a longblog field in my table. Any fix for this? Any workaround?
[15 Aug 2014 8:18]
MySQL Verification Team
For the 5.6.17 case, you should see if this solves it in 5.6.21: http://bugs.mysql.com/bug.php?id=70641
[13 Oct 2014 14:59]
MySQL Verification Team
Please see Shane comment. Thanks.
[14 Nov 2014 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".