Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@server [~]# perl mysqltuner.pl
- >> MySQLTuner 1.3.0 - Major Hayden <[email protected]>
- >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
- >> Run with '--help' for additional options and output filtering
- [OK] Currently running supported MySQL version 5.5.36-cll
- [OK] Operating on 64-bit architecture
- -------- Storage Engine Statistics -------------------------------------------
- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
- [--] Data in MyISAM tables: 250M (Tables: 430)
- [--] Data in InnoDB tables: 7M (Tables: 193)
- [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
- [--] Data in MEMORY tables: 0B (Tables: 1)
- [!!] Total fragmented tables: 43
- -------- Security Recommendations -------------------------------------------
- [OK] All database users have passwords assigned
- -------- Performance Metrics -------------------------------------------------
- [--] Up for: 2d 4h 52m 18s (3M q [18.360 qps], 159K conn, TX: 2B, RX: 652M)
- [--] Reads / Writes: 49% / 51%
- [--] Total buffers: 8.1G global + 2.8M per thread (500 max threads)
- [OK] Maximum possible memory usage: 9.4G (60% of installed RAM)
- [OK] Slow queries: 0% (3K/3M)
- [OK] Highest usage of available connections: 61% (305/500)
- [OK] Key buffer size / total MyISAM indexes: 32.0M/76.8M
- [OK] Key buffer hit rate: 99.5% (54M cached / 264K reads)
- [!!] Query cache is disabled
- [OK] Sorts requiring temporary tables: 0% (74 temp sorts / 92K sorts)
- [!!] Joins performed without indexes: 12151
- [!!] Temporary tables created on disk: 26% (9K on disk / 37K total)
- [OK] Thread cache hit rate: 99% (305 created / 159K connections)
- [!!] Table cache hit rate: 0% (100 open / 50K opened)
- [OK] Open file limit used: 0% (184/65K)
- [OK] Table locks acquired immediately: 99% (3M immediate / 3M locks)
- [OK] InnoDB buffer pool / data size: 8.0G/7.2M
- [OK] InnoDB log waits: 0
- -------- Recommendations -----------------------------------------------------
- General recommendations:
- Run OPTIMIZE TABLE to defragment tables for better performance
- Enable the slow query log to troubleshoot bad queries
- 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
- Read this before increasing table_cache over 64: http://bit.ly/1mi7c4C
- Variables to adjust:
- query_cache_size (>= 8M)
- join_buffer_size (> 128.0K, or always use indexes with joins)
- tmp_table_size (> 32M)
- max_heap_table_size (> 32M)
- table_cache (> 100)
Advertisement
Add Comment
Please, Sign In to add comment