root@host [/usr/local/bin]# /usr/local/bin/mysqltuner.pl
>> MySQLTuner 1.2.0 - Major Hayden <[email protected]>
>> Bug reports, feature requests, and downloads at [url]http://mysqltuner.com/[/url]
>> Run with '--help' for additional options and output filtering
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.32-cll-lve
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 8G (Tables: 15008)
[--] Data in InnoDB tables: 154M (Tables: 1629)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[--] Data in MEMORY tables: 1M (Tables: 90)
[!!] Total fragmented tables: 1772
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 1d 18h 4m 4s (28M q [188.476 qps], 737K conn, TX: 751B, RX: 4B)
[--] Reads / Writes: 60% / 40%
[--] Total buffers: 5.3G global + 5.4M per thread (151 max threads)
[OK] Maximum possible memory usage: 6.1G (12% of installed RAM)
[OK] Slow queries: 0% (187K/28M)
[OK] Highest usage of available connections: 32% (49/151)
[OK] Key buffer size / total MyISAM indexes: 5.0G/1.2G
[OK] Key buffer hit rate: 100.0% (5B cached / 857K reads)
[OK] Query cache efficiency: 72.8% (14M cached / 20M selects)
[!!] Query cache prunes per day: 610509
[OK] Sorts requiring temporary tables: 0% (2K temp sorts / 951K sorts)
[!!] Joins performed without indexes: 22342
[!!] Temporary tables created on disk: 41% (938K on disk / 2M total)
[OK] Thread cache hit rate: 99% (58 created / 737K connections)
[!!] Table cache hit rate: 1% (5K open / 250K opened)
[OK] Open file limit used: 18% (9K/50K)
[OK] Table locks acquired immediately: 99% (11M immediate / 11M locks)
[OK] InnoDB data size / buffer pool: 154.0M/200.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Adjust your join queries to always utilize indexes
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries without LIMIT clauses
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_size (> 50M)
join_buffer_size (> 1.0M, or always use indexes with joins)
tmp_table_size (> 50M)
max_heap_table_size (> 50M)
table_cache (> 5000)
root@host [/usr/local/bin]#