MySQL Optimization per MySQLTuner Report ?

cool_recep

Well-Known Member
Apr 10, 2013
59
7
58
cPanel Access Level
Website Owner
Hi,

this is my MySQLTuner result:

Code:
 >>  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.6.17
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 2G (Tables: 410)
[--] Data in InnoDB tables: 3G (Tables: 322)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 52)
[--] Data in MEMORY tables: 2M (Tables: 5)
[!!] Total fragmented tables: 73

-------- Security Recommendations  -------------------------------------------
[OK] All database users have passwords assigned

-------- Performance Metrics -------------------------------------------------
[--] Up for: 5d 2h 18m 53s (171M q [390.596 qps], 4M conn, TX: 5885B, RX: 50B)
[--] Reads / Writes: 78% / 22%
[--] Total buffers: 3.3G global + 513.0M per thread (500 max threads)
[!!] Maximum possible memory usage: 253.8G (811% of installed RAM)
[OK] Slow queries: 0% (804/171M)
[OK] Highest usage of available connections: 60% (302/500)
[OK] Key buffer size / total MyISAM indexes: 2.0G/625.0M
[OK] Key buffer hit rate: 100.0% (12B cached / 162K reads)
[OK] Query cache efficiency: 81.4% (117M cached / 143M selects)
[!!] Query cache prunes per day: 245242
[OK] Sorts requiring temporary tables: 0% (10K temp sorts / 12M sorts)
[!!] Joins performed without indexes: 714848
[!!] Temporary tables created on disk: 30% (1M on disk / 6M total)
[OK] Thread cache hit rate: 99% (302 created / 4M connections)
[OK] Table cache hit rate: 51% (1K open / 3K opened)
[OK] Open file limit used: 3% (995/32K)
[OK] Table locks acquired immediately: 99% (48M immediate / 48M locks)
[!!] InnoDB  buffer pool / data size: 256.0M/4.0G
[OK] InnoDB log waits: 0
-------- Recommendations -----------------------------------------------------
General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    Reduce your overall MySQL memory footprint for system stability
    Increasing the query_cache size over 128M may reduce performance
    Adjust your join queries to always utilize indexes
    Temporary table size is already large - reduce result set size
    Reduce your SELECT DISTINCT queries without LIMIT clauses
Variables to adjust:
  *** MySQL's maximum memory usage is dangerously high ***
  *** Add RAM before increasing MySQL buffer variables ***
    query_cache_size (> 512M) [see warning above]
    join_buffer_size (> 512.0M, or always use indexes with joins)
    innodb_buffer_pool_size (>= 3G)
I don't know how to get the contents of my.cnf. What do you suggest ?