Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@node-srv:~/mysqltuner# perl mysqltuner.pl
- >> MySQLTuner 1.7.13 - 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] Logged in using credentials from Debian maintenance account.
- [OK] Currently running supported MySQL version 10.1.35-MariaDB-1
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [--] Log file: /var/log/mysql/error.log(1K)
- [OK] Log file /var/log/mysql/error.log exists
- [OK] Log file /var/log/mysql/error.log is readable.
- [OK] Log file /var/log/mysql/error.log is not empty
- [OK] Log file /var/log/mysql/error.log is smaller than 32 Mb
- [OK] /var/log/mysql/error.log doesn't contain any warning.
- [OK] /var/log/mysql/error.log doesn't contain any error.
- [--] 1 start(s) detected in /var/log/mysql/error.log
- [--] 1) 2018-10-10 11:06:17 140672706604160 [Note] /usr/sbin/mysqld: ready for connections.
- [--] 0 shutdown(s) detected in /var/log/mysql/error.log
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
- [--] Data in InnoDB tables: 58.3M (Tables: 99)
- [OK] Total fragmented tables: 0
- -------- Analysis Performance Metrics --------------------------------------------------------------
- [--] innodb_stats_on_metadata: OFF
- [OK] No stat updates during querying INFORMATION_SCHEMA.
- -------- Security Recommendations ------------------------------------------------------------------
- [OK] There are no anonymous accounts for any database users
- [OK] All database users have passwords assigned
- [--] There are 618 basic passwords in the list.
- -------- CVE Security Recommendations --------------------------------------------------------------
- [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 2h 3m 42s (59K q [8.027 qps], 2K conn, TX: 57M, RX: 11M)
- [--] Reads / Writes: 74% / 26%
- [--] Binary logging is disabled
- [--] Physical Memory : 7.8G
- [--] Max MySQL memory : 752.7M
- [--] Other process memory: 339.5M
- [--] Total buffers: 328.0M global + 2.8M per thread (151 max threads)
- [--] P_S Max memory usage: 0B
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 347.7M (4.36% of installed RAM)
- [OK] Maximum possible memory usage: 752.7M (9.43% of installed RAM)
- [OK] Overall possible memory usage with other process is compatible with memory available
- [OK] Slow queries: 0% (0/59K)
- [OK] Highest usage of available connections: 4% (7/151)
- [OK] Aborted connections: 0.00% (0/2240)
- [!!] 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] Query cache efficiency: 28.5% (16K cached / 57K selects)
- [OK] Query cache prunes per day: 0
- [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 330 sorts)
- [!!] Joins performed without indexes: 1683
- [OK] Temporary tables created on disk: 19% (1K on disk / 8K total)
- [OK] Thread cache hit rate: 99% (7 created / 2K connections)
- [OK] Table cache hit rate: 96% (192 open / 198 opened)
- [OK] Open file limit used: 0% (59/16K)
- [OK] Table locks acquired immediately: 100% (35K immediate / 35K locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Performance schema is disabled.
- [--] Memory used by P_S: 0B
- [--] Sys schema isn't installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is enabled.
- [--] Thread Pool Size: 6 thread(s).
- [--] Using default value is good enough for your version (10.1.35-MariaDB-1)
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 18.3% (3M used / 16M cache)
- [OK] Key buffer size / total MyISAM indexes: 16.0M/123.0K
- [!!] Read Key buffer hit rate: 90.0% (20 cached / 2 reads)
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [OK] InnoDB File per table is activated
- [OK] InnoDB buffer pool / data size: 128.0M/58.3M
- [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 48.0M * 2/128.0M should be equal 25%
- [!!] InnoDB buffer pool <= 1G and Innodb_buffer_pool_instances(!=1).
- [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
- [OK] InnoDB Read buffer efficiency: 99.76% (635895 hits/ 637444 total)
- [OK] InnoDB Write log efficiency: 93.26% (15472 hits/ 16590 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 1118 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is enabled.
- [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
- [!!] Aria pagecache hit rate: 88.1% (14K cached / 1K reads)
- -------- TokuDB Metrics ----------------------------------------------------------------------------
- [--] TokuDB is disabled.
- -------- XtraDB Metrics ----------------------------------------------------------------------------
- [--] XtraDB is disabled.
- -------- Galera Metrics ----------------------------------------------------------------------------
- [--] Galera is disabled.
- -------- Replication Metrics -----------------------------------------------------------------------
- [--] Galera Synchronous replication: NO
- [--] No replication slave(s) for this server.
- [--] Binlog format: STATEMENT
- [--] XA support enabled: ON
- [--] Semi synchronous replication Master: Not Activated
- [--] Semi synchronous replication Slave: Not Activated
- [--] This is a standalone server
- -------- Recommendations ---------------------------------------------------------------------------
- General recommendations:
- MySQL was started within the last 24 hours - recommendations may be inaccurate
- 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
- Performance schema should be activated for better diagnostics
- Consider installing Sys schema from https://github.com/mysql/mysql-sys
- Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: http://bit.ly/2wgkDvS
- Variables to adjust:
- query_cache_size (=0)
- query_cache_type (=0)
- join_buffer_size (> 256.0K, or always use indexes with JOINs)
- performance_schema = ON enable PFS
- innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
- innodb_buffer_pool_instances (=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement