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.

mysqltuner.pl optimzation help

Discussion in 'Workarounds and Optimization' started by zerpex, Oct 29, 2011.

  1. zerpex

    zerpex Member

    Joined:
    Oct 17, 2011
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm trying to get the best performance out of my server, and then I did run the mysqltuner.pl on my server but yeah, having some problems with applying the settings.. This is my output I get when I run the ./mysqltuner.pl

    Code:
    -------- General Statistics --------------------------------------------------
    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.1.56
    [OK] Operating on 64-bit architecture
    
    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster 
    [--] Data in MyISAM tables: 9M (Tables: 328)
    [--] Data in InnoDB tables: 368K (Tables: 20)
    [!!] Total fragmented tables: 44
    
    -------- Security Recommendations  -------------------------------------------
    [!!] User 'eximstats@localhost' has no password set.
    
    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 6d 21h 4m 40s (1M q [2.499 qps], 54K conn, TX: 2B, RX: 271M)
    [--] Reads / Writes: 62% / 38%
    [--] Total buffers: 66.0M global + 3.1M per thread (500 max threads)
    [OK] Maximum possible memory usage: 1.6G (42% of installed RAM)
    [OK] Slow queries: 0% (0/1M)
    [OK] Highest usage of available connections: 1% (9/500)
    [OK] Key buffer size / total MyISAM indexes: 8.0M/2.2M
    [OK] Key buffer hit rate: 99.5% (2M cached / 13K reads)
    [OK] Query cache efficiency: 83.5% (958K cached / 1M selects)
    [!!] Query cache prunes per day: 3689
    [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 42K sorts)
    [!!] Joins performed without indexes: 16989
    [!!] Temporary tables created on disk: 43% (20K on disk / 47K total)
    [OK] Thread cache hit rate: 99% (302 created / 54K connections)
    [!!] Table cache hit rate: 0% (80 open / 19K opened)
    [OK] Open file limit used: 6% (160/2K)
    [OK] Table locks acquired immediately: 99% (434K immediate / 434K locks)
    [OK] InnoDB data size / buffer pool: 368.0K/8.0M
    
    -------- 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_cache gradually to avoid file descriptor limits
    Variables to adjust:
        query_cache_size (> 24M)
        join_buffer_size (> 512.0K, or always use indexes with joins)
        tmp_table_size (> 24M)
        max_heap_table_size (> 24M)
        table_cache (> 80)
    
    Can any help, and maybe tell how I fix the !! and if it's recommended.

    Thank you!
     
    #1 zerpex, Oct 29, 2011
    Last edited: Oct 29, 2011
  2. rioabraham

    rioabraham Registered

    Joined:
    Nov 16, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pathanamthitta, India
    cPanel Access Level:
    Website Owner
    Optimize tables from cpanel-phpmyadmin

    Variables to adjust:
    Add some configurations to vi /etc/my.cnf
    After adding above RUN
    Hope it helps .
     
  3. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes above changes in mysql configuration should improve server performance. From the slow.log one can find the slow mysql queries and optimize it easily.
     
Loading...

Share This Page