Skip to main content

Table cache hit rate 0%

Comments

5 comments

  • thinkbot
    you must run it at least for 24h to get reliable information, your mysql instance run for 17m before mysqltuner
    0
  • cPanelMichael
    Yes, please let MySQL run at least 24 hours before running the tuner to get the most accurate results, as ThinkBot mentioned. Thank you.
    0
  • and12345
    Hi this is the latest result >> MySQLTuner 1.3.0 - Major Hayden >> 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.35-cll [OK] Operating on 64-bit architecture -------- Storage Engine Statistics ------------------------------------------- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM [--] Data in MyISAM tables: 475M (Tables: 3051) [--] Data in InnoDB tables: 1G (Tables: 529) [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17) [!!] Total fragmented tables: 46 -------- Security Recommendations ------------------------------------------- [OK] All database users have passwords assigned -------- Performance Metrics ------------------------------------------------- [--] Up for: 3d 17h 9m 5s (5M q [18.404 qps], 81K conn, TX: 5B, RX: 694M) [--] Reads / Writes: 90% / 10% [--] Total buffers: 2.2G global + 3.1M per thread (50 max threads) [OK] Maximum possible memory usage: 2.3G (30% of installed RAM) [!!] Slow queries: 6% (379K/5M) [OK] Highest usage of available connections: 46% (23/50) [OK] Key buffer size / total MyISAM indexes: 128.0M/116.1M [OK] Key buffer hit rate: 99.5% (126M cached / 688K reads) [OK] Query cache efficiency: 82.1% (4M cached / 5M selects) [!!] Query cache prunes per day: 181730 [OK] Sorts requiring temporary tables: 0% (675 temp sorts / 367K sorts) [!!] Joins performed without indexes: 3102 [OK] Temporary tables created on disk: 14% (29K on disk / 208K total) [OK] Thread cache hit rate: 99% (23 created / 81K connections) [!!] Table cache hit rate: 0% (64 open / 7M opened) [OK] Open file limit used: 0% (121/65K) [OK] Table locks acquired immediately: 99% (1M immediate / 1M locks) [OK] InnoDB buffer pool / data size: 2.0G/1.4G [OK] InnoDB log waits: 0 -------- Recommendations ----------------------------------------------------- General recommendations: Run OPTIMIZE TABLE to defragment tables for better performance Adjust your join queries to always utilize indexes 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 (> 512.0K, or always use indexes with joins) table_cache (> 64)
    0
  • and12345
    Can anybody please help me to figure this out :(
    0
  • thinkbot
    remove this table_cache = 64 and you can also increase query_cache_size to 50M and clean double repeated vars like: # CACHES AND LIMITS # tmp-table-size = 32M max-heap-table-size = 32M query-cache-type = 0 query-cache-size = 8M max-heap-table-size = 32M query-cache-type = 0 query-cache-size = 8M query_cache_limit = 1M query_cache_type = 1 to this # CACHES AND LIMITS # tmp-table-size = 32M max-heap-table-size = 32M query-cache-size = 50M query_cache_limit = 1M query_cache_type = 1 and restart mysql table_cache and this table-open-cache = 5000 are the same, table-open-cache is new naming first you set the same value to 5000, then to 64, 5000 gets overwritten so you need to delete table_cache line you got over 3000 MyISAM tables, so 5000 is good number
    0

Please sign in to leave a comment.