Skip to content

Instantly share code, notes, and snippets.

@tloudon
Created August 18, 2015 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tloudon/e663bdf3a9b287b8d341 to your computer and use it in GitHub Desktop.
Save tloudon/e663bdf3a9b287b8d341 to your computer and use it in GitHub Desktop.
[OK] Logged in using credentials from debian maintenance account.
>> MySQLTuner 1.5.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] Currently running supported MySQL version 5.5.44-MariaDB-1ubuntu0.14.04.1
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MRG_MYISAM +SPHINX 
[--] Data in MEMORY tables: 125K (Tables: 1)
[--] Data in InnoDB tables: 1G (Tables: 3809)
[!!] Total fragmented tables: 3809
-------- Security Recommendations -------------------------------------------
[OK] There is no anonymous account in all database users
[OK] All database users have passwords assigned
[!!] There is not basic password file list !
-------- Performance Metrics -------------------------------------------------
[--] Up for: 5h 34m 30s (30K q [1.525 qps], 112 conn, TX: 107M, RX: 55M)
[--] Reads / Writes: 88% / 12%
[--] Binary logging is disabled
[--] Total buffers: 192.0M global + 2.7M per thread (151 max threads)
[OK] Maximum reached memory usage: 200.1M (5.06% of installed RAM)
[OK] Maximum possible memory usage: 597.8M (15.12% of installed RAM)
[OK] Slow queries: 0% (0/30K)
[OK] Highest usage of available connections: 1% (3/151)
[OK] Aborted connections: 2.68% (3/112)
[!!] Key buffer used: 18.2% (3M used / 16M cache)
[OK] Key buffer size / total MyISAM indexes: 16.0M/99.0K
[!!] Read Key buffer hit rate: 80.0% (5 cached / 1 reads)
[OK] Query cache efficiency: 43.9% (21K cached / 47K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 127 sorts)
[!!] Joins performed without indexes: 80
[OK] Temporary tables created on disk: 6% (17 on disk / 267 total)
[OK] Thread cache hit rate: 97% (3 created / 112 connections)
[!!] Table cache hit rate: 1% (400 open / 24K opened)
[OK] Open file limit used: 0% (3/1K)
[OK] Table locks acquired immediately: 100% (10K immediate / 10K locks)
-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool / data size: 128.0M/1.3G
[OK] InnoDB buffer pool instances: 1
[OK] InnoDB Used buffer: 100.00% (8191 used/ 8191 total)
[OK] InnoDB Read buffer efficiency: 91.77% (2760535 hits/ 3008075 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 194 writes)
-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
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:
join_buffer_size (> 128.0K, or always use indexes with joins)
table_open_cache (> 400)
innodb_buffer_pool_size (>= 1G) if possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment