The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me with my.cnf

Discussion in 'Workarounds and Optimization' started by norival1992, Sep 16, 2013.

  1. norival1992

    norival1992 Registered

    Joined:
    Feb 18, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    mysqltunner
    Code:
     >>  MySQLTuner 1.2.0_1 - Major Hayden <major@mhtx.net>
     >>  Bug reports, feature requests, and downloads at [url]http://mysqltuner.com/[/url]
     >>  Run with '--help' for additional options and output filtering
    
    -------- General Statistics --------------------------------------------------
    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.5.32-cll
    [OK] Operating on 64-bit architecture
    
    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
    [--] Data in MyISAM tables: 7M (Tables: 41)
    [--] Data in InnoDB tables: 6M (Tables: 71)
    [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
    [!!] Total fragmented tables: 3
    
    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 15m 47s (6K q [6.724 qps], 1K conn, TX: 3M, RX: 835K)
    [--] Reads / Writes: 82% / 18%
    [--] Total buffers: 168.0M global + 2.8M per thread (151 max threads)
    [OK] Maximum possible memory usage: 583.2M (56% of installed RAM)
    [OK] Slow queries: 0% (0/6K)
    [OK] Highest usage of available connections: 13% (20/151)
    [OK] Key buffer size / total MyISAM indexes: 8.0M/4.7M
    [OK] Key buffer hit rate: 98.1% (29K cached / 565 reads)
    [!!] Query cache is disabled
    [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 189 sorts)
    [OK] Temporary tables created on disk: 10% (22 on disk / 213 total)
    [!!] Thread cache is disabled
    [OK] Table cache hit rate: 95% (158 open / 165 opened)
    [OK] Open file limit used: 13% (135/1K)
    [OK] Table locks acquired immediately: 100% (4K immediate / 4K locks)
    [OK] InnoDB data size / buffer pool: 6.6M/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
        Set thread_cache_size to 4 as a starting value
    Variables to adjust:
        query_cache_size (>= 8M)
        thread_cache_size (start at 4)
    
    Please help create the best my.cnf. Thank you very much!
     
  2. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    18
    Can you paste the current mysql variables here. That will be helpful to suggest the changes
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. thinkbot

    thinkbot Well-Known Member

    Joined:
    Oct 30, 2012
    Messages:
    326
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    add query cache

    query_cache_type = 1
    query_cache_size = 30M
    query_cache_limit = 1M

    and
    key_buffer_size = 50M
    thread_cache_size = 20

    the rest is fine
     
Loading...

Share This Page