Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@vps55436:~# ./mysqltuner.pl
- >> MySQLTuner 1.7.15 - Major Hayden <[email protected]>
- >> 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.26-MariaDB-0+deb9u1
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [--] Log file: /var/log/mysql/error.log(10K)
- [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
- [!!] /var/log/mysql/error.log contains 61 warning(s).
- [OK] /var/log/mysql/error.log doesn't contain any error.
- [--] 0 start(s) detected in /var/log/mysql/error.log
- [--] 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 MyISAM tables: 5.8M (Tables: 101)
- [--] Data in InnoDB tables: 808.0M (Tables: 2423)
- [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
- [!!] User 'root@localhost' has no password set.
- [!!] User 'MSbeton@%' does not specify hostname restrictions.
- [!!] User 'adminmsmedecin@%' does not specify hostname restrictions.
- [!!] User 'facarchitest@%' does not specify hostname restrictions.
- [!!] There is no basic password file list!
- -------- CVE Security Recommendations --------------------------------------------------------------
- [--] Skipped due to --cvefile option undefined
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 4d 13h 5m 30s (7M q [20.145 qps], 217K conn, TX: 24G, RX: 1G)
- [--] Reads / Writes: 86% / 14%
- [--] Binary logging is disabled
- [--] Physical Memory : 8.0G
- [--] Max MySQL memory : 3.5G
- [--] Other process memory: 0B
- [--] Total buffers: 3.3G global + 2.1M per thread (66 max threads)
- [--] P_S Max memory usage: 82M
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 3.5G (43.80% of installed RAM)
- [OK] Maximum possible memory usage: 3.5G (44.00% of installed RAM)
- [OK] Overall possible memory usage with other process is compatible with memory available
- [OK] Slow queries: 0% (0/7M)
- [!!] Highest connection usage: 87% (58/66)
- [!!] Aborted connections: 6.14% (13378/217859)
- [!!] 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: 43.4% (4M cached / 10M selects)
- [!!] Query cache prunes per day: 54692
- [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 154K sorts)
- [!!] Joins performed without indexes: 2369
- [!!] Temporary tables created on disk: 53% (162K on disk / 302K total)
- [OK] Thread cache hit rate: 89% (23K created / 217K connections)
- [!!] Table cache hit rate: 14% (4K open / 27K opened)
- [OK] Open file limit used: 1% (224/16K)
- [OK] Table locks acquired immediately: 99% (2M immediate / 2M locks)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Memory used by P_S: 82.1M
- [--] Sys schema isn't installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is enabled.
- [--] Thread Pool Size: 3 thread(s).
- [--] Using default value is good enough for your version (10.1.26-MariaDB-0+deb9u1)
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 18.3% (196M used / 1B cache)
- [OK] Key buffer size / total MyISAM indexes: 1.0G/504.0K
- [OK] Read Key buffer hit rate: 100.0% (1M cached / 525 reads)
- [!!] Write Key buffer hit rate: 66.5% (396K cached / 263K writes)
- -------- InnoDB Metrics ----------------------------------------------------------------------------
- [--] InnoDB is enabled.
- [--] InnoDB Thread Concurrency: 0
- [OK] InnoDB File per table is activated
- [OK] InnoDB buffer pool / data size: 2.0G/808.0M
- [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 256.0M * 2/2.0G should be equal to 25%
- [OK] InnoDB buffer pool instances: 2
- [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
- [OK] InnoDB Read buffer efficiency: 99.93% (78682552 hits/ 78734007 total)
- [!!] InnoDB Write Log efficiency: 47.12% (583302 hits/ 1238025 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 654723 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is enabled.
- [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
- [!!] Aria pagecache hit rate: 93.0% (2M cached / 159K 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:
- Control warning line(s) into /var/log/mysql/error.log file
- Set up a Password for user with the following SQL statement ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
- Restrict Host for user@% to user@SpecificDNSorIp
- Reduce or eliminate persistent connections to reduce connection usage
- Reduce or eliminate unclosed connections and network issues
- 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
- When making adjustments, make tmp_table_size/max_heap_table_size equal
- Reduce your SELECT DISTINCT queries which have no LIMIT clause
- Increase table_open_cache gradually to avoid file descriptor limits
- Read this before increasing table_open_cache over 64: https://bit.ly/1mi7c4C
- Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
- This is MyISAM only table_cache scalability problem, InnoDB not affected.
- See more details here: https://bugs.mysql.com/bug.php?id=49177
- This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
- Beware that open_files_limit (16364) variable
- should be greater than table_open_cache (4096)
- Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
- Consider installing Sys schema from https://github.com/good-dba/mariadb-sys for MariaDB
- Variables to adjust:
- max_connections (> 66)
- wait_timeout (< 28800)
- interactive_timeout (< 28800)
- query_cache_size (=0)
- query_cache_type (=0)
- query_cache_size (> 32M)
- join_buffer_size (> 680.0K, or always use indexes with JOINs)
- tmp_table_size (> 128M)
- max_heap_table_size (> 128M)
- table_open_cache (> 4096)
Advertisement
Add Comment
Please, Sign In to add comment