Skip to content

Instantly share code, notes, and snippets.

@kareypowell
Created September 27, 2016 18:58
Show Gist options
  • Save kareypowell/288a0e3de4daab793de7cf187c8dee2f to your computer and use it in GitHub Desktop.
Save kareypowell/288a0e3de4daab793de7cf187c8dee2f to your computer and use it in GitHub Desktop.
>> MySQLTuner 1.6.19 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.52-0+deb8u1
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
[--] Data in InnoDB tables: 252M (Tables: 8659)
[--] Data in MyISAM tables: 145K (Tables: 96)
[OK] Total fragmented tables: 0
-------- Security Recommendations ------------------------------------------------------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned
[!!] User 'cirrus@%' hasn't specific host restriction.
[!!] User 'orbit@%' hasn't specific host restriction.
[--] There are 612 basic passwords in the list.
-------- CVE Security Recommendations --------------------------------------------------------------
[OK] NO SECURITY CVE FOUND FOR YOUR VERSION
-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 42m 48s (4M q [1K qps], 787K conn, TX: 2G, RX: 386M)
[--] Reads / Writes: 99% / 1%
[--] Binary logging is disabled
[--] Physical Memory : 2.0G
[--] Max MySQL memory : 2.8G
[--] Other process memory: 427.8M
[--] Total buffers: 192.0M global + 2.7M per thread (1000 max threads)
[--] P_S Max memory usage: 0B
[--] Galera GCache Max memory usage: 0B
[!!] Maximum reached memory usage: 2.1G (107.29% of installed RAM)
[!!] Maximum possible memory usage: 2.8G (143.62% of installed RAM)
[!!] Overall possible memory usage with other process exceeded memory
[OK] Slow queries: 0% (0/4M)
[OK] Highest usage of available connections: 72% (729/1000)
[OK] Aborted connections: 0.01% (49/787234)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
[!!] Query cache may be disabled by default due to mutex contention.
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 38 sorts)
[!!] Joins performed without indexes: 11
[OK] Temporary tables created on disk: 0% (90 on disk / 1M total)
[OK] Thread cache hit rate: 76% (188K created / 787K connections)
[!!] Table cache hit rate: 0% (400 open / 56K opened)
[OK] Open file limit used: 4% (240/5K)
[OK] Table locks acquired immediately: 100% (1K immediate / 1K locks)
-------- Performance schema ------------------------------------------------------------------------
[--] Performance schema is disabled.
-------- ThreadPool Metrics ------------------------------------------------------------------------
[--] ThreadPool stat is disabled.
-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 18.3% (3M used / 16M cache)
[OK] Key buffer size / total MyISAM indexes: 16.0M/241.0K
[OK] Read Key buffer hit rate: 95.4% (109 cached / 5 reads)
[!!] Write Key buffer hit rate: 41.2% (51 cached / 30 writes)
-------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is disabled.
-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool / data size: 128.0M/252.6M
[OK] InnoDB buffer pool instances: 1
[--] InnoDB Buffer Pool Chunk Size not used or defined in your version
[OK] InnoDB Read buffer efficiency: 98.73% (7448304 hits/ 7544489 total)
[!!] InnoDB Write Log efficiency: 100% (18 hits/ 18 total)
[OK] InnoDB log waits: 0.00% (0 waits / 36 writes)
-------- TokuDB Metrics ----------------------------------------------------------------------------
[--] TokuDB is disabled.
-------- Galera Metrics ----------------------------------------------------------------------------
[--] Galera is disabled.
-------- Replication Metrics -----------------------------------------------------------------------
[--] Galera Synchronous replication: NO
[--] No replication slave(s) for this server.
[--] This is a standalone server.
-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
Restrict Host for user@% to user@SpecificDNSorIp
MySQL started within last 24 hours - recommendations may be inaccurate
Reduce your overall MySQL memory footprint for system stability
Dedicate this server to your database for highest performance.
Enable the slow query log to troubleshoot bad queries
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
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
Beware that open_files_limit (5000) variable
should be greater than table_open_cache ( 400)
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_type (=0)
join_buffer_size (> 128.0K, or always use indexes with joins)
table_open_cache (> 400)
innodb_buffer_pool_size (>= 252M) if possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment