If I run the mysqltuner.pl script, I get the following output.
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.22-log
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in InnoDB tables: 7M (Tables: 74)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[!!] Total fragmented tables: 74
-------- Security Recommendations -------------------------------------------
[OK] All database users have passwords assigned
-------- Performance Metrics -------------------------------------------------
[--] Up for: 4m 26s (1K q [4.718 qps], 16 conn, TX: 1M, RX: 309K)
[--] Reads / Writes: 91% / 9%
[--] Total buffers: 216.0M global + 7.4M per thread (151 max threads)
[OK] Maximum possible memory usage: 1.3G (66% of installed RAM)
[OK] Slow queries: 0% (0/1K)
[OK] Highest usage of available connections: 4% (7/151)
[OK] Key buffer size / total MyISAM indexes: 48.0M/98.0K
[OK] Key buffer hit rate: 100.0% (28 cached / 0 reads)
[!!] Query cache efficiency: 14.9% (167 cached / 1K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 32 sorts)
[!!] Joins performed without indexes: 10
[OK] Temporary tables created on disk: 21% (5 on disk / 23 total)
[OK] Thread cache hit rate: 56% (7 created / 16 connections)
[OK] Table cache hit rate: 28% (64 open / 227 opened)
[OK] Open file limit used: 1% (20/1K)
[OK] Table locks acquired immediately: 100% (1K immediate / 1K locks)
[!!] Connections aborted: 12%
[OK] InnoDB data size / buffer pool: 7.8M/128.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Adjust your join queries to always utilize indexes
Your applications are not closing MySQL connections properly
Variables to adjust:
query_cache_limit (> 8M, or use smaller result sets)
join_buffer_size (> 128.0K, or always use indexes with joins)
Particularly, the recommendation to run OPTIMIZE TABLE because I have 74 fragmented tables (the mythconverg database I assume) troubles me. I am running the optimize_mythdb.pl script in my daily cron. Should this correct these fragmented tables?I have also tried logging in to MYSQL manually and running "mysql> OPTIMIZE TABLE callsignnetworkmap;" and then running the mysqltuner.pl script again, with no difference.




Latest Posts










