[root@cassiopeia ~]# ./mysqltuner.pl
>> MySQLTuner 1.2.0 - Major Hayden <
major@mhtx.net>
>> Bug reports, feature requests, and downloads at
http://mysqltuner.com/ >> Run with '--help' for additional options and output filtering
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.53
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 3G (Tables: 50)
[--] Data in InnoDB tables: 285G (Tables: 429)
[!!] Total fragmented tables: 439
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 3d 22h 40m 46s (29M q [85.332 qps], 94K conn, TX: 18B, RX: 14B)
[--] Reads / Writes: 22% / 78%
[--] Total buffers: 2.2G global + 11.2M per thread (151 max threads)
[OK] Maximum possible memory usage: 3.9G (45% of installed RAM)
[OK] Slow queries: 0% (6/29M)
[OK] Highest usage of available connections: 52% (79/151)
[OK] Key buffer size / total MyISAM indexes: 64.0M/1.7G
[OK] Key buffer hit rate: 100.0% (9M cached / 95 reads)
[OK] Query cache efficiency: 20.1% (1M cached / 7M selects)
[!!] Query cache prunes per day: 559652
[OK] Sorts requiring temporary tables: 0% (565 temp sorts / 195K sorts)
[OK] Temporary tables created on disk: 16% (38K on disk / 230K total)
[OK] Thread cache hit rate: 99% (79 created / 94K connections)
[!!] Table cache hit rate: 10% (272 open / 2K opened)
[OK] Open file limit used: 0% (76/11K)
[OK] Table locks acquired immediately: 99% (27M immediate / 27M locks)
[!!] Connections aborted: 6%
[!!] InnoDB data size / buffer pool: 285.5G/2.0G
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Enable the slow query log to troubleshoot bad queries
Increase table_cache gradually to avoid file descriptor limits
Your applications are not closing MySQL connections properly
Variables to adjust:
query_cache_size (> 32M)
table_cache (> 2048)
innodb_buffer_pool_size (>= 285G)