Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ./mysqltuner.pl
- >> MySQLTuner 1.7.9 - 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
- Please enter your MySQL administrative login: stephane
- Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 10.1.24-MariaDB
- [OK] Operating on 64-bit architecture
- -------- Log file Recommendations ------------------------------------------------------------------
- [--] Log file: /home/stephane/programs/install/mariadb/mariadb.error.log(409K)
- [OK] Log file /home/stephane/programs/install/mariadb/mariadb.error.log exists
- [OK] Log file /home/stephane/programs/install/mariadb/mariadb.error.log is readable.
- [OK] Log file /home/stephane/programs/install/mariadb/mariadb.error.log is not empty
- [OK] Log file /home/stephane/programs/install/mariadb/mariadb.error.log is smaller than 32 Mb
- [!!] /home/stephane/programs/install/mariadb/mariadb.error.log contains 102 warning(s).
- [OK] /home/stephane/programs/install/mariadb/mariadb.error.log doesn't contain any error.
- [--] 141 start(s) detected in /home/stephane/programs/install/mariadb/mariadb.error.log
- [--] 1) 2018-05-22 18:46:59 139720186808128 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 2) 2018-05-22 18:09:43 140075817367360 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 3) 2018-05-15 15:18:18 140013939431232 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 4) 2018-05-15 14:08:19 140084863973184 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 5) 2018-05-14 11:06:34 139676974479168 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 6) 2018-05-11 18:51:45 140594014009152 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 7) 2018-05-11 15:41:31 140046853789504 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 8) 2018-05-11 11:26:00 140487523477312 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 9) 2018-05-02 21:08:13 140270019381056 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 10) 2018-05-01 20:55:18 139845748852544 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
- [--] 131 shutdown(s) detected in /home/stephane/programs/install/mariadb/mariadb.error.log
- [--] 1) 2018-05-22 18:46:53 140075661507328 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 2) 2018-05-15 18:05:26 140013384510208 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 3) 2018-05-15 15:08:55 140083033750272 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 4) 2018-05-14 23:10:52 139675088251648 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 5) 2018-05-11 23:18:09 140593473878784 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 6) 2018-05-11 17:04:29 140046334528256 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 7) 2018-05-11 15:11:14 140485695023872 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 8) 2018-05-02 21:12:51 140268186802944 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 9) 2018-05-01 23:32:30 139845544864512 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- [--] 10) 2018-04-28 18:15:53 140427714366208 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
- -------- Storage Engine Statistics -----------------------------------------------------------------
- [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
- [--] Data in InnoDB tables: 230M (Tables: 250)
- [OK] Total fragmented tables: 0
- -------- Security Recommendations ------------------------------------------------------------------
- [OK] There are no anonymous accounts for any database users
- [OK] All database users have passwords assigned
- [--] There are 612 basic passwords in the list.
- -------- CVE Security Recommendations --------------------------------------------------------------
- [!!] CVE-2017-15365(<= 10.1.29) : "sql/event_data_objects.cc in MariaDB before 10.1.30 and 10.2.x before 10.2.10 and Percona XtraDB Cluster before 5.6.37-26.21-3 and 5.7.x before 5.7.19-29.22-3 allows remote authenticated users with SQL access to bypass intended access restrictions and replicate data definition language (DDL) statements to cluster nodes by leveraging incorrect ordering of DDL replication and ACL checking."
- [!!] 1 CVE(s) found for your MySQL release.
- -------- Performance Metrics -----------------------------------------------------------------------
- [--] Up for: 38m 49s (1K q [0.545 qps], 21 conn, TX: 161K, RX: 135K)
- [--] Reads / Writes: 25% / 75%
- [--] Binary logging is enabled (GTID MODE: OFF)
- [--] Physical Memory : 3.7G
- [--] Max MySQL memory : 1.8G
- [--] Other process memory: 2.6G
- [--] Total buffers: 1.3G global + 2.9M per thread (151 max threads)
- [--] P_S Max memory usage: 92M
- [--] Galera GCache Max memory usage: 0B
- [OK] Maximum reached memory usage: 1.4G (38.31% of installed RAM)
- [OK] Maximum possible memory usage: 1.8G (49.49% of installed RAM)
- [!!] Overall possible memory usage with other process exceeded memory
- [OK] Slow queries: 0% (0/1K)
- [OK] Highest usage of available connections: 4% (7/151)
- [!!] Aborted connections: 4.76% (1/21)
- [!!] Query cache may be disabled by default due to mutex contention.
- [!!] Query cache efficiency: 0.0% (0 cached / 61 selects)
- [OK] Query cache prunes per day: 0
- [OK] No Sort requiring temporary tables
- [OK] No joins without indexes
- [OK] Temporary tables created on disk: 0% (0 on disk / 45 total)
- [OK] Thread cache hit rate: 61% (8 created / 21 connections)
- [!!] Table cache hit rate: 5% (49 open / 840 opened)
- [OK] Open file limit used: 0% (34/4K)
- [OK] Table locks acquired immediately: 100% (1K immediate / 1K locks)
- [OK] Binlog cache memory access: 100.00% (82 Memory / 82 Total)
- -------- Performance schema ------------------------------------------------------------------------
- [--] Memory used by P_S: 92.7M
- [--] Sys schema isn't installed.
- -------- ThreadPool Metrics ------------------------------------------------------------------------
- [--] ThreadPool stat is enabled.
- [--] Thread Pool Size: 4 thread(s).
- [--] Using default value is good enough for your version (10.1.24-MariaDB)
- -------- MyISAM Metrics ----------------------------------------------------------------------------
- [!!] Key buffer used: 18.2% (24M used / 134M cache)
- [OK] Key buffer size / total MyISAM indexes: 128.0M/123.0K
- [!!] Read Key buffer hit rate: 75.0% (8 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: 1.0G/230.9M
- [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 128.0M * 2/1.0G 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.70% (351224 hits/ 352283 total)
- [!!] InnoDB Write Log efficiency: 82.11% (25434 hits/ 30977 total)
- [OK] InnoDB log waits: 0.00% (0 waits / 5543 writes)
- -------- AriaDB Metrics ----------------------------------------------------------------------------
- [--] AriaDB is enabled.
- [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
- -------- TokuDB Metrics ----------------------------------------------------------------------------
- [--] TokuDB is disabled.
- -------- XtraDB Metrics ----------------------------------------------------------------------------
- [--] XtraDB is disabled.
- -------- RocksDB Metrics ---------------------------------------------------------------------------
- [--] RocksDB is disabled.
- -------- Spider Metrics ----------------------------------------------------------------------------
- [--] Spider is disabled.
- -------- Connect Metrics ---------------------------------------------------------------------------
- [--] Connect 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 /home/stephane/programs/install/mariadb/mariadb.error.log file
- 1 CVE(s) found for your MySQL release. Consider upgrading your version !
- MySQL started within last 24 hours - recommendations may be inaccurate
- Dedicate this server to your database for highest performance.
- Reduce or eliminate unclosed connections and network issues
- Increase table_open_cache gradually to avoid file descriptor limits
- Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
- 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 (4162) variable
- should be greater than table_open_cache (2000)
- Consider installing Sys schema from https://github.com/mysql/mysql-sys
- Variables to adjust:
- query_cache_size (=0)
- query_cache_type (=0)
- query_cache_limit (> 1M, or use smaller result sets)
- table_open_cache (> 2000)
- innodb_buffer_pool_instances (=1)
Advertisement
Add Comment
Please, Sign In to add comment