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.

Optimization Suggestions Requested

Discussion in 'Workarounds and Optimization' started by UHLHosting, Mar 6, 2015.

  1. UHLHosting

    UHLHosting Well-Known Member

    Joined:
    Sep 26, 2014
    Messages:
    53
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Bratislava
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Can I get a recommendation based on this?

    Code:
    root@panel [/usr/src]# ./mysqltuner.pl 
    
     >>  MySQLTuner 1.4.0 - Major Hayden <major@mhtx.net>
     >>  Bug reports, feature requests, and downloads at [url=http://mysqltuner.com/]MySQLTuner-perl by major[/url]
     >>  Run with '--help' for additional options and output filtering
    [OK] Currently running supported MySQL version 5.6.23
    [OK] Operating on 64-bit architecture
    
    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM 
    [--] Data in MyISAM tables: 148M (Tables: 143)
    [--] Data in InnoDB tables: 57M (Tables: 471)
    [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 52)
    [!!] Total fragmented tables: 477
    
    -------- Security Recommendations  -------------------------------------------
    [OK] All database users have passwords assigned
    
    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 2d 15h 54m 28s (3M q [15.108 qps], 55K conn, TX: 18B, RX: 586M)
    [--] Reads / Writes: 96% / 4%
    [--] Total buffers: 169.0M global + 1.1M per thread (151 max threads)
    [OK] Maximum possible memory usage: 338.9M (2% of installed RAM)
    [OK] Slow queries: 0% (0/3M)
    [OK] Highest usage of available connections: 25% (39/151)
    [OK] Key buffer size / total MyISAM indexes: 8.0M/20.1M
    [OK] Key buffer hit rate: 100.0% (117M cached / 3K reads)
    [!!] Query cache is disabled
    [OK] Sorts requiring temporary tables: 1% (6K temp sorts / 562K sorts)
    [!!] Joins performed without indexes: 2093
    [!!] Temporary tables created on disk: 49% (158K on disk / 318K total)
    [OK] Thread cache hit rate: 99% (262 created / 55K connections)
    [OK] Table cache hit rate: 92% (989 open / 1K opened)
    [OK] Open file limit used: 4% (426/10K)
    [OK] Table locks acquired immediately: 99% (3M immediate / 3M locks)
    [OK] InnoDB buffer pool / data size: 128.0M/57.7M
    [OK] InnoDB log waits: 0
    -------- Recommendations -----------------------------------------------------
    General recommendations:
        Run OPTIMIZE TABLE to defragment tables for better performance
        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
    Variables to adjust:
        query_cache_type (=1)
        join_buffer_size (> 256.0K, or always use indexes with joins)
        tmp_table_size (> 16M)
        max_heap_table_size (> 16M)
    
    root@panel [/usr/src]#
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You may generate more user-feedback by providing some additional information. For instance, are you currently experiencing a specific issue with the speed at which your database load? Or, are you simply attempting to optimize your MySQL server as much as possible?

    Thank you.
     
  3. UHLHosting

    UHLHosting Well-Known Member

    Joined:
    Sep 26, 2014
    Messages:
    53
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Bratislava
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes I just try to get a better experience from mysql for my users. Tune it up a bit in my environment, I am using Centos 7 with latest Cpanel EA4+MariaDB 10.0.1 24 GB ram 8 CPU cores Xeon 3200 MHz
     
Loading...

Share This Page