thefunky-monkey.com/page-364/centos-7-mysql-8-0/

> wget -O /usr/bin/mysqltuner https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl
> chmod 755 /usr/bin/mysqltuner




> mysqltuner
 >>  MySQLTuner 1.3.0 - Major Hayden <major@mhtx.net>
 >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
 >>  Run with '--help' for additional options and output filtering
[OK] Logged in using credentials from debian maintenance account.
[!!] Currently running unsupported MySQL version 10.0.12-MariaDB-1~wheezy-log
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MRG_MyISAM
[--] Data in MyISAM tables: 166M (Tables: 84)
[--] Data in InnoDB tables: 763M (Tables: 293)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 52)
[--] Data in MEMORY tables: 0B (Tables: 1)
[!!] Total fragmented tables: 49

-------- Security Recommendations  -------------------------------------------
[OK] All database users have passwords assigned

-------- Performance Metrics -------------------------------------------------
[--] Up for: 9d 2h 43m 31s (37M q [47.313 qps], 291K conn, TX: 42B, RX: 6B)
[--] Reads / Writes: 88% / 12%
[--] Total buffers: 1.3G global + 23.3M per thread (100 max threads)
[OK] Maximum possible memory usage: 3.6G (11% of installed RAM)
[OK] Slow queries: 0% (325/37M)
[OK] Highest usage of available connections: 33% (33/100)
[OK] Key buffer size / total MyISAM indexes: 128.0M/35.9M
[OK] Key buffer hit rate: 97.9% (22M cached / 464K reads)
[OK] Query cache efficiency: 36.3% (15M cached / 42M selects)
[!!] Query cache prunes per day: 127508
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 253K sorts)
[!!] Joins performed without indexes: 3127
[OK] Temporary tables created on disk: 15% (133K on disk / 851K total)
[OK] Thread cache hit rate: 99% (33 created / 291K connections)
[!!] Table cache hit rate: 0% (457 open / 2M opened)
[OK] Open file limit used: 22% (229/1K)
[OK] Table locks acquired immediately: 99% (16M immediate / 16M locks)
[OK] InnoDB buffer pool / data size: 768.0M/763.6M
[OK] InnoDB log waits: 0
-------- Recommendations -----------------------------------------------------
General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    Increasing the query_cache size over 128M may reduce performance
    Adjust your join queries to always utilize indexes
    Increase table_open_cache gradually to avoid file descriptor limits
    Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
Variables to adjust:
    query_cache_size (> 384M) [see warning above]
    join_buffer_size (> 16.0M, or always use indexes with joins)
    table_open_cache (> 457)


SMALL

'MySQL-MariaDB' 카테고리의 다른 글

slow query 설정 2탄  (0) 2020.09.16
mariadb 메모리 사용률  (0) 2020.09.15
AWS EC2 Linux에 MariaDB 설치  (0) 2020.09.12
MySQL 잠재적인 인덱스 누락 확인  (0) 2020.09.04
MySQL 사용되지 않는 인덱스 제거  (0) 2020.09.04

+ Recent posts