Bug #69391 | MySQL Server consuming excesive swap space | ||
---|---|---|---|
Submitted: | 3 Jun 2013 18:45 | Modified: | 4 Jun 2013 14:21 |
Reporter: | Van Stokes | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.6.11-community | OS: | Linux (Ubuntu 12.04 x86_64) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Memory, server, swap |
[3 Jun 2013 18:45]
Van Stokes
[3 Jun 2013 18:53]
Van Stokes
Oh, BTW, this is repeatable. We don't seem to have this issue with 5.5.x server (we are running 5.5.31-ubuntu).
[3 Jun 2013 19:20]
MySQL Verification Team
Curious what "SHOW ENGINE PERFORMANCE_SCHEMA STATUS" shows as the memory consumption with the high table_open_cache you have?
[3 Jun 2013 19:40]
Van Stokes
SHOW ENGINE PERFORMANCE_SCHEMA STATUS
Attachment: 201306031537-show_engine_performance_schema_status.csv (text/csv), 9.92 KiB.
[3 Jun 2013 19:41]
Van Stokes
$ top -u mysql top - 15:39:43 up 3 days, 7:22, 1 user, load average: 0.00, 0.01, 0.12 Tasks: 96 total, 1 running, 95 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 8178236k total, 7963296k used, 214940k free, 4760k buffers Swap: 8386556k total, 2772732k used, 5613824k free, 40776k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND 30707 mysql 20 0 17.0g 7.4g 7972 S 0 94.9 0:27.85 9.6g mysqld see attached file for the SHOW ENGINE PERFORMANCE_SCHEMA STATUS
[3 Jun 2013 20:33]
MySQL Verification Team
P_S is using 10GB of ram due to the large table cache specific. Please, read about providing sizing data for performance_schema. http://marcalff.blogspot.com/2013/04/on-configuring-performance-schema.html Or if you don't care much to use performance_schema, simply set in my.cnf: performance_schema=0
[4 Jun 2013 14:21]
Van Stokes
tables-open-cache = 512K is a remnant setting from our 5.5 servers. I reviewed the article you provided and I also found this article http://dimitrik.free.fr/blog/archives/2012/09/mysql-performance-table-open-cache-in-56.htm... I modified the my.cnf to be: performance-schema = off table-open-cache = 2K table-open-cache-instances = 2 That did it. Thank you.