Skip to main content

Optimization for my.cnf

Comments

5 comments

  • cPanelMichael
    Hello :) Please try to let MySQL run for at least 24 hours to ensure the most accurate tuner results. Thank you.
    0
  • Bidi
    OKa no problem i will whait shoud i edit this prost or just post directly here ?
    0
  • cPanelMichael
    You can post the updated results here. Thank you.
    0
  • Bidi

    >> MySQLTuner 1.4.0 - Major Hayden >> Bug reports, feature requests, and downloads at [url=http://mysqltuner.com/]MySQLTuner-perl by major >> Run with '--help' for additional options and output filtering [OK] Currently running supported MySQL version 5.6.21-log [OK] Operating on 64-bit architecture -------- Storage Engine Statistics ------------------------------------------- [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM [--] Data in MyISAM tables: 12G (Tables: 12854) [--] Data in InnoDB tables: 157M (Tables: 1656) [--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 52) [--] Data in MEMORY tables: 0B (Tables: 20) [!!] Total fragmented tables: 321 -------- Security Recommendations ------------------------------------------- [OK] All database users have passwords assigned -------- Performance Metrics ------------------------------------------------- [--] Up for: 2d 7h 2m 38s (32M q [164.523 qps], 852K conn, TX: 263B, RX: 6B) [--] Reads / Writes: 80% / 20% [--] Total buffers: 1.0G global + 14.6M per thread (120 max threads) [OK] Maximum possible memory usage: 2.7G (17% of installed RAM) [OK] Slow queries: 0% (18/32M) [OK] Highest usage of available connections: 45% (55/120) [OK] Key buffer size / total MyISAM indexes: 325.0M/9.0G [OK] Key buffer hit rate: 99.7% (917M cached / 2M reads) [OK] Query cache efficiency: 70.3% (19M cached / 27M selects) [!!] Query cache prunes per day: 1163679 [OK] Sorts requiring temporary tables: 0% (7 temp sorts / 2M sorts) [!!] Joins performed without indexes: 41344 [!!] Temporary tables created on disk: 50% (478K on disk / 949K total) [OK] Thread cache hit rate: 99% (444 created / 852K connections) [!!] Table cache hit rate: 0% (500 open / 443K opened) [OK] Open file limit used: 2% (810/31K) [OK] Table locks acquired immediately: 99% (11M immediate / 11M locks) [OK] InnoDB buffer pool / data size: 512.0M/157.1M [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 Increase table_open_cache gradually to avoid file descriptor limits Read this before increasing table_open_cache over 64: [url=http://bit.ly/1mi7c4C]table_cache negative scalability - MySQL Performance Blog Variables to adjust: query_cache_size (> 64M) join_buffer_size (> 12.0M, or always use indexes with joins) tmp_table_size (> 128M) max_heap_table_size (> 128M) table_open_cache (> 500) Report Complete: Wed Dec 17 11:59:20 EET 2014 ----------------------------
    and this is my.
    [mysqld] slow-query-log=1 long_query_time=5 max_connections=120 max_user_connections=50 key_buffer_size=325M myisam_sort_buffer_size=64M join_buffer_size=12M sort_buffer_size=2M table_open_cache = 500 thread_cache_size = 25 interactive_timeout=5 wait_timeout=300 connect_timeout=8 max_allowed_packet=268435456 max_connect_errors=10 query_cache_size=64M query_cache_limit=2M query_cache_type=1 open_files_limit=31000 tmp_table_size = 128M max_heap_table_size = 128M innodb_buffer_pool_size = 512M tmpdir = "/home/mysqltmp" local-infile=0 innodb_file_per_table=1 default-storage-engine=MyISAM
    the top one was another one witch i was using and i mixed un Tnx :D
    0
  • cPanelMichael
    Note that you may need to post the results on another forum such as WHT if you don't receive enough user-feedback on our forums here. Thank you.
    0

Please sign in to leave a comment.