Skip to main content

need help with mysql optimization please

Comments

2 comments

  • mark135uk
    here are my sqltuner results
    >> MySQLTuner 1.4.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.40-cll [OK] Operating on 64-bit architecture -------- Storage Engine Statistics ------------------------------------------- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM [--] Data in MyISAM tables: 2G (Tables: 123) [--] Data in InnoDB tables: 7M (Tables: 77) [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17) [!!] Total fragmented tables: 11 -------- Security Recommendations ------------------------------------------- [OK] All database users have passwords assigned -------- Performance Metrics ------------------------------------------------- [--] Up for: 2d 0h 10m 52s (165M q [956.931 qps], 2M conn, TX: 499B, RX: 24B) [--] Reads / Writes: 34% / 66% [--] Total buffers: 8.8G global + 16.4M per thread (3056 max threads) [OK] Maximum possible memory usage: 57.6G (45% of installed RAM) [OK] Slow queries: 0% (40/165M) [OK] Highest usage of available connections: 5% (153/3056) [OK] Key buffer size / total MyISAM indexes: 512.0M/1.3G [OK] Key buffer hit rate: 100.0% (35B cached / 6M reads) [OK] Query cache efficiency: 48.6% (38M cached / 79M selects) [!!] Query cache prunes per day: 62165 [OK] Sorts requiring temporary tables: 1% (228K temp sorts / 17M sorts) [!!] Joins performed without indexes: 4074 [!!] Temporary tables created on disk: 37% (65K on disk / 176K total) [OK] Thread cache hit rate: 99% (153 created / 2M connections) [!!] Table cache hit rate: 14% (992 open / 6K opened) [OK] Open file limit used: 6% (1K/15K) [OK] Table locks acquired immediately: 95% (138M immediate / 145M locks) [OK] InnoDB buffer pool / data size: 8.0G/7.7M [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_open_cache gradually to avoid file descriptor limits Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C Variables to adjust: query_cache_size (> 128M) join_buffer_size (> 128.0K, or always use indexes with joins) tmp_table_size (> 256M) max_heap_table_size (> 128M) table_open_cache (> 1024)
    thanks in advance
    0
  • cPanelMichael
    Hello :) Aside from the MySQL optimization request, you also mentioned: hi im having some small trouble with my server load going over, my server details are below
    You may find this thread helpful: Troubleshooting High Loads On Linux Systems Thank you.
    0

Please sign in to leave a comment.