Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

MySQL Optimization per MySQLTuner Report ?

Discussion in 'Workarounds and Optimization' started by cool_recep, Jul 6, 2014.

  1. cool_recep

    cool_recep Member

    Apr 10, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner

    this is my MySQLTuner result:

     >>  MySQLTuner 1.3.0 - Major Hayden <>
     >>  Bug reports, feature requests, and downloads at
     >>  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 -------------------------------------------
    [--] 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 ?
  2. Archmactrix

    Archmactrix Well-Known Member

    Jan 20, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    You will find it in:
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    You will need to access SSH as root and use a command such as "cat". EX:

    cat /etc/my.cnf
    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice