Guest User

MySQL Tuner

a guest
May 22nd, 2018
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.20 KB | None | 0 0
  1. $ ./mysqltuner.pl
  2. >> MySQLTuner 1.7.9 - Major Hayden <[email protected]>
  3. >> Bug reports, feature requests, and downloads at http://mysqltuner.com/
  4. >> Run with '--help' for additional options and output filtering
  5.  
  6. [--] Skipped version check for MySQLTuner script
  7. Please enter your MySQL administrative login: stephane
  8. Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 10.1.24-MariaDB
  9. [OK] Operating on 64-bit architecture
  10.  
  11. -------- Log file Recommendations ------------------------------------------------------------------
  12. [--] Log file: /home/stephane/programs/install/mariadb/mariadb.error.log(409K)
  13. [OK] Log file /home/stephane/programs/install/mariadb/mariadb.error.log exists
  14. [OK] Log file /home/stephane/programs/install/mariadb/mariadb.error.log is readable.
  15. [OK] Log file /home/stephane/programs/install/mariadb/mariadb.error.log is not empty
  16. [OK] Log file /home/stephane/programs/install/mariadb/mariadb.error.log is smaller than 32 Mb
  17. [!!] /home/stephane/programs/install/mariadb/mariadb.error.log contains 102 warning(s).
  18. [OK] /home/stephane/programs/install/mariadb/mariadb.error.log doesn't contain any error.
  19. [--] 141 start(s) detected in /home/stephane/programs/install/mariadb/mariadb.error.log
  20. [--] 1) 2018-05-22 18:46:59 139720186808128 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  21. [--] 2) 2018-05-22 18:09:43 140075817367360 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  22. [--] 3) 2018-05-15 15:18:18 140013939431232 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  23. [--] 4) 2018-05-15 14:08:19 140084863973184 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  24. [--] 5) 2018-05-14 11:06:34 139676974479168 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  25. [--] 6) 2018-05-11 18:51:45 140594014009152 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  26. [--] 7) 2018-05-11 15:41:31 140046853789504 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  27. [--] 8) 2018-05-11 11:26:00 140487523477312 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  28. [--] 9) 2018-05-02 21:08:13 140270019381056 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  29. [--] 10) 2018-05-01 20:55:18 139845748852544 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: ready for connections.
  30. [--] 131 shutdown(s) detected in /home/stephane/programs/install/mariadb/mariadb.error.log
  31. [--] 1) 2018-05-22 18:46:53 140075661507328 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  32. [--] 2) 2018-05-15 18:05:26 140013384510208 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  33. [--] 3) 2018-05-15 15:08:55 140083033750272 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  34. [--] 4) 2018-05-14 23:10:52 139675088251648 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  35. [--] 5) 2018-05-11 23:18:09 140593473878784 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  36. [--] 6) 2018-05-11 17:04:29 140046334528256 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  37. [--] 7) 2018-05-11 15:11:14 140485695023872 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  38. [--] 8) 2018-05-02 21:12:51 140268186802944 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  39. [--] 9) 2018-05-01 23:32:30 139845544864512 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  40. [--] 10) 2018-04-28 18:15:53 140427714366208 [Note] /home/stephane/programs/install/mariadb/bin/mysqld: Shutdown complete
  41.  
  42. -------- Storage Engine Statistics -----------------------------------------------------------------
  43. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  44. [--] Data in InnoDB tables: 230M (Tables: 250)
  45. [OK] Total fragmented tables: 0
  46.  
  47. -------- Security Recommendations ------------------------------------------------------------------
  48. [OK] There are no anonymous accounts for any database users
  49. [OK] All database users have passwords assigned
  50. [--] There are 612 basic passwords in the list.
  51.  
  52. -------- CVE Security Recommendations --------------------------------------------------------------
  53. [!!] 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."
  54. [!!] 1 CVE(s) found for your MySQL release.
  55.  
  56. -------- Performance Metrics -----------------------------------------------------------------------
  57. [--] Up for: 38m 49s (1K q [0.545 qps], 21 conn, TX: 161K, RX: 135K)
  58. [--] Reads / Writes: 25% / 75%
  59. [--] Binary logging is enabled (GTID MODE: OFF)
  60. [--] Physical Memory : 3.7G
  61. [--] Max MySQL memory : 1.8G
  62. [--] Other process memory: 2.6G
  63. [--] Total buffers: 1.3G global + 2.9M per thread (151 max threads)
  64. [--] P_S Max memory usage: 92M
  65. [--] Galera GCache Max memory usage: 0B
  66. [OK] Maximum reached memory usage: 1.4G (38.31% of installed RAM)
  67. [OK] Maximum possible memory usage: 1.8G (49.49% of installed RAM)
  68. [!!] Overall possible memory usage with other process exceeded memory
  69. [OK] Slow queries: 0% (0/1K)
  70. [OK] Highest usage of available connections: 4% (7/151)
  71. [!!] Aborted connections: 4.76% (1/21)
  72. [!!] Query cache may be disabled by default due to mutex contention.
  73. [!!] Query cache efficiency: 0.0% (0 cached / 61 selects)
  74. [OK] Query cache prunes per day: 0
  75. [OK] No Sort requiring temporary tables
  76. [OK] No joins without indexes
  77. [OK] Temporary tables created on disk: 0% (0 on disk / 45 total)
  78. [OK] Thread cache hit rate: 61% (8 created / 21 connections)
  79. [!!] Table cache hit rate: 5% (49 open / 840 opened)
  80. [OK] Open file limit used: 0% (34/4K)
  81. [OK] Table locks acquired immediately: 100% (1K immediate / 1K locks)
  82. [OK] Binlog cache memory access: 100.00% (82 Memory / 82 Total)
  83.  
  84. -------- Performance schema ------------------------------------------------------------------------
  85. [--] Memory used by P_S: 92.7M
  86. [--] Sys schema isn't installed.
  87.  
  88. -------- ThreadPool Metrics ------------------------------------------------------------------------
  89. [--] ThreadPool stat is enabled.
  90. [--] Thread Pool Size: 4 thread(s).
  91. [--] Using default value is good enough for your version (10.1.24-MariaDB)
  92.  
  93. -------- MyISAM Metrics ----------------------------------------------------------------------------
  94. [!!] Key buffer used: 18.2% (24M used / 134M cache)
  95. [OK] Key buffer size / total MyISAM indexes: 128.0M/123.0K
  96. [!!] Read Key buffer hit rate: 75.0% (8 cached / 2 reads)
  97.  
  98. -------- InnoDB Metrics ----------------------------------------------------------------------------
  99. [--] InnoDB is enabled.
  100. [--] InnoDB Thread Concurrency: 0
  101. [OK] InnoDB File per table is activated
  102. [OK] InnoDB buffer pool / data size: 1.0G/230.9M
  103. [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 128.0M * 2/1.0G should be equal 25%
  104. [!!] InnoDB buffer pool <= 1G and Innodb_buffer_pool_instances(!=1).
  105. [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
  106. [OK] InnoDB Read buffer efficiency: 99.70% (351224 hits/ 352283 total)
  107. [!!] InnoDB Write Log efficiency: 82.11% (25434 hits/ 30977 total)
  108. [OK] InnoDB log waits: 0.00% (0 waits / 5543 writes)
  109.  
  110. -------- AriaDB Metrics ----------------------------------------------------------------------------
  111. [--] AriaDB is enabled.
  112. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  113.  
  114. -------- TokuDB Metrics ----------------------------------------------------------------------------
  115. [--] TokuDB is disabled.
  116.  
  117. -------- XtraDB Metrics ----------------------------------------------------------------------------
  118. [--] XtraDB is disabled.
  119.  
  120. -------- RocksDB Metrics ---------------------------------------------------------------------------
  121. [--] RocksDB is disabled.
  122.  
  123. -------- Spider Metrics ----------------------------------------------------------------------------
  124. [--] Spider is disabled.
  125.  
  126. -------- Connect Metrics ---------------------------------------------------------------------------
  127. [--] Connect is disabled.
  128.  
  129. -------- Galera Metrics ----------------------------------------------------------------------------
  130. [--] Galera is disabled.
  131.  
  132. -------- Replication Metrics -----------------------------------------------------------------------
  133. [--] Galera Synchronous replication: NO
  134. [--] No replication slave(s) for this server.
  135. [--] Binlog format: STATEMENT
  136. [--] XA support enabled: ON
  137. [--] Semi synchronous replication Master: Not Activated
  138. [--] Semi synchronous replication Slave: Not Activated
  139. [--] This is a standalone server
  140.  
  141. -------- Recommendations ---------------------------------------------------------------------------
  142. General recommendations:
  143. Control warning line(s) into /home/stephane/programs/install/mariadb/mariadb.error.log file
  144. 1 CVE(s) found for your MySQL release. Consider upgrading your version !
  145. MySQL started within last 24 hours - recommendations may be inaccurate
  146. Dedicate this server to your database for highest performance.
  147. Reduce or eliminate unclosed connections and network issues
  148. Increase table_open_cache gradually to avoid file descriptor limits
  149. Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4C
  150. This is MyISAM only table_cache scalability problem, InnoDB not affected.
  151. See more details here: https://bugs.mysql.com/bug.php?id=49177
  152. This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
  153. Beware that open_files_limit (4162) variable
  154. should be greater than table_open_cache (2000)
  155. Consider installing Sys schema from https://github.com/mysql/mysql-sys
  156. Variables to adjust:
  157. query_cache_size (=0)
  158. query_cache_type (=0)
  159. query_cache_limit (> 1M, or use smaller result sets)
  160. table_open_cache (> 2000)
  161. innodb_buffer_pool_instances (=1)
Advertisement
Add Comment
Please, Sign In to add comment