Advertisement
fablau1211

Untitled

Nov 19th, 2020
879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.53 KB | None | 0 0
  1. root@db:~# ./mysqltuner.pl
  2. >> MySQLTuner 1.7.20 - Major Hayden <major@mhtx.net>
  3. >> Bug reports, feature requests, and downloads at http://mysqltuner.pl/
  4. >> Run with '--help' for additional options and output filtering
  5.  
  6. [--] Skipped version check for MySQLTuner script
  7. [OK] Logged in using credentials from Debian maintenance account.
  8. [OK] Currently running supported MySQL version 10.3.25-MariaDB-0+deb10u1
  9. [OK] Operating on 64-bit architecture
  10.  
  11. -------- Log file Recommendations ------------------------------------------------------------------
  12. [OK] Log file /var/log/mysql/error.log exists
  13. [--] Log file: /var/log/mysql/error.log(18K)
  14. [OK] Log file /var/log/mysql/error.log is readable.
  15. [OK] Log file /var/log/mysql/error.log is not empty
  16. [OK] Log file /var/log/mysql/error.log is smaller than 32 Mb
  17. [!!] /var/log/mysql/error.log contains 1 warning(s).
  18. [!!] /var/log/mysql/error.log contains 1 error(s).
  19. [--] 7 start(s) detected in /var/log/mysql/error.log
  20. [--] 1) 2020-11-19 11:14:26 0 [Note] /usr/sbin/mysqld: ready for connections.
  21. [--] 2) 2020-11-19 11:07:02 0 [Note] /usr/sbin/mysqld: ready for connections.
  22. [--] 3) 2020-11-19 10:56:08 0 [Note] /usr/sbin/mysqld: ready for connections.
  23. [--] 4) 2020-11-19 10:41:07 0 [Note] /usr/sbin/mysqld: ready for connections.
  24. [--] 5) 2020-11-19 10:35:19 0 [Note] /usr/sbin/mysqld: ready for connections.
  25. [--] 6) 2020-11-19 10:31:39 0 [Note] /usr/sbin/mysqld: ready for connections.
  26. [--] 7) 2020-11-19 10:30:06 0 [Note] /usr/sbin/mysqld: ready for connections.
  27. [--] 7 shutdown(s) detected in /var/log/mysql/error.log
  28. [--] 1) 2020-11-19 11:13:22 0 [Note] /usr/sbin/mysqld: Shutdown complete
  29. [--] 2) 2020-11-19 11:07:00 0 [Note] /usr/sbin/mysqld: Shutdown complete
  30. [--] 3) 2020-11-19 10:56:05 0 [Note] /usr/sbin/mysqld: Shutdown complete
  31. [--] 4) 2020-11-19 10:40:59 0 [Note] /usr/sbin/mysqld: Shutdown complete
  32. [--] 5) 2020-11-19 10:35:17 0 [Note] /usr/sbin/mysqld: Shutdown complete
  33. [--] 6) 2020-11-19 10:31:38 0 [Note] /usr/sbin/mysqld: Shutdown complete
  34. [--] 7) 2020-11-19 10:30:06 0 [Note] /usr/sbin/mysqld: Shutdown complete
  35.  
  36. -------- Storage Engine Statistics -----------------------------------------------------------------
  37. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  38. [--] Data in MyISAM tables: 3.1G (Tables: 416)
  39. [--] Data in InnoDB tables: 27.0G (Tables: 482)
  40. [OK] Total fragmented tables: 0
  41.  
  42. -------- Analysis Performance Metrics --------------------------------------------------------------
  43. [--] innodb_stats_on_metadata: OFF
  44. [OK] No stat updates during querying INFORMATION_SCHEMA.
  45.  
  46. -------- Security Recommendations ------------------------------------------------------------------
  47. [OK] There are no anonymous accounts for any database users
  48. [OK] All database users have passwords assigned
  49. [!!] There is no basic password file list!
  50.  
  51. -------- CVE Security Recommendations --------------------------------------------------------------
  52. [--] Skipped due to --cvefile option undefined
  53.  
  54. -------- Performance Metrics -----------------------------------------------------------------------
  55. [--] Up for: 4h 43m 9s (2M q [120.623 qps], 695 conn, TX: 357M, RX: 205M)
  56. [--] Reads / Writes: 60% / 40%
  57. [--] Binary logging is disabled
  58. [--] Physical Memory : 15.3G
  59. [--] Max MySQL memory : 315.8G
  60. [--] Other process memory: 0B
  61. [--] Total buffers: 10.3G global + 1.0G per thread (300 max threads)
  62. [--] P_S Max memory usage: 0B
  63. [--] Galera GCache Max memory usage: 0B
  64. [!!] Maximum reached memory usage: 15.4G (100.54% of installed RAM)
  65. [!!] Maximum possible memory usage: 315.8G (2064.21% of installed RAM)
  66. [!!] Overall possible memory usage with other process exceeded memory
  67. [OK] Slow queries: 0% (4/2M)
  68. [OK] Highest usage of available connections: 1% (5/300)
  69. [OK] Aborted connections: 0.00% (0/695)
  70. [!!] Query cache may be disabled by default due to mutex contention.
  71. [OK] Query cache efficiency: 46.8% (1M cached / 2M selects)
  72. [!!] Query cache prunes per day: 687395
  73. [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 127 sorts)
  74. [OK] No joins without indexes
  75. [!!] Temporary tables created on disk: 26% (295 on disk / 1K total)
  76. [OK] Thread cache hit rate: 96% (27 created / 695 connections)
  77. [OK] Table cache hit rate: 96% (649 open / 670 opened)
  78. [!!] table_definition_cache(400) is lower than number of tables(1057)
  79. [OK] Open file limit used: 2% (887/32K)
  80. [OK] Table locks acquired immediately: 100% (1K immediate / 1K locks)
  81.  
  82. -------- Performance schema ------------------------------------------------------------------------
  83. [--] Performance schema is disabled.
  84. [--] Memory used by P_S: 0B
  85. [--] Sys schema isn't installed.
  86.  
  87. -------- ThreadPool Metrics ------------------------------------------------------------------------
  88. [--] ThreadPool stat is enabled.
  89. [--] Thread Pool Size: 8 thread(s).
  90. [--] Using default value is good enough for your version (10.3.25-MariaDB-0+deb10u1)
  91.  
  92. -------- MyISAM Metrics ----------------------------------------------------------------------------
  93. [!!] Key buffer used: 43.9% (9M used / 20M cache)
  94. [OK] Key buffer size / total MyISAM indexes: 20.0M/1.2G
  95. [OK] Read Key buffer hit rate: 98.7% (400K cached / 5K reads)
  96. [!!] Write Key buffer hit rate: 8.6% (158K cached / 13K writes)
  97.  
  98. -------- InnoDB Metrics ----------------------------------------------------------------------------
  99. [--] InnoDB is enabled.
  100. [--] InnoDB Thread Concurrency: 0
  101. [OK] InnoDB File per table is activated
  102. [!!] InnoDB buffer pool / data size: 10.0G/27.0G
  103. [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (0.9375 %): 48.0M * 2/10.0G should be equal to 25%
  104. [!!] InnoDB buffer pool instances: 8
  105. [--] Number of InnoDB Buffer Pool Chunk : 80 for 8 Buffer Pool Instance(s)
  106. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  107. [OK] InnoDB Read buffer efficiency: 100.00% (3021289867 hits/ 3021351222 total)
  108. [!!] InnoDB Write Log efficiency: 71.74% (2102121 hits/ 2930249 total)
  109. [OK] InnoDB log waits: 0.00% (0 waits / 828128 writes)
  110.  
  111. -------- AriaDB Metrics ----------------------------------------------------------------------------
  112. [--] AriaDB is enabled.
  113. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  114. [OK] Aria pagecache hit rate: 98.1% (15K cached / 295 reads)
  115.  
  116. -------- TokuDB Metrics ----------------------------------------------------------------------------
  117. [--] TokuDB is disabled.
  118.  
  119. -------- XtraDB Metrics ----------------------------------------------------------------------------
  120. [--] XtraDB is disabled.
  121.  
  122. -------- Galera Metrics ----------------------------------------------------------------------------
  123. [--] Galera is disabled.
  124.  
  125. -------- Replication Metrics -----------------------------------------------------------------------
  126. [--] Galera Synchronous replication: NO
  127. [--] No replication slave(s) for this server.
  128. [--] Binlog format: MIXED
  129. [--] XA support enabled: ON
  130. [--] Semi synchronous replication Master: OFF
  131. [--] Semi synchronous replication Slave: OFF
  132. [--] This is a standalone server
  133.  
  134. -------- Recommendations ---------------------------------------------------------------------------
  135. General recommendations:
  136. Control warning line(s) into /var/log/mysql/error.log file
  137. Control error line(s) into /var/log/mysql/error.log file
  138. MySQL was started within the last 24 hours - recommendations may be inaccurate
  139. Reduce your overall MySQL memory footprint for system stability
  140. Dedicate this server to your database for highest performance.
  141. When making adjustments, make tmp_table_size/max_heap_table_size equal
  142. Reduce your SELECT DISTINCT queries which have no LIMIT clause
  143. Performance schema should be activated for better diagnostics
  144. Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
  145. Consider installing Sys schema from https://github.com/FromDual/mariadb-sys for MariaDB
  146. Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
  147. Variables to adjust:
  148. *** MySQL's maximum memory usage is dangerously high ***
  149. *** Add RAM before increasing MySQL buffer variables ***
  150. query_cache_size (=0)
  151. query_cache_type (=0)
  152. query_cache_size (> 20M)
  153. tmp_table_size (> 64M)
  154. max_heap_table_size (> 64M)
  155. table_definition_cache(400) > 1057 or -1 (autosizing if supported)
  156. performance_schema = ON enable PFS
  157. innodb_buffer_pool_size (>= 27.0G) if possible.
  158. innodb_log_file_size should be (=1G) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
  159. innodb_buffer_pool_instances(=10)
  160.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement