Advertisement
matrox445

mysql_tunner

Mar 2nd, 2022 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. -------------------------------------------------------------------------
  2. MySQLTunner
  3. >> MySQLTuner 1.9.4
  4. * Jean-Marie Renouard <jmrenouard@gmail.com>
  5. * Major Hayden <major@mhtx.net>
  6. >> Bug reports, feature requests, and downloads at http://mysqltuner.pl/
  7. >> Run with '--help' for additional options and output filtering
  8.  
  9. [--] Skipped version check for MySQLTuner script
  10. [OK] Logged in using credentials from Debian maintenance account.
  11. [OK] Currently running supported MySQL version 10.3.31-MariaDB-0+deb10u1-log
  12. [OK] Operating on 64-bit architecture
  13.  
  14. -------- Log file Recommendations ------------------------------------------------------------------
  15. [OK] Log file /var/log/mysql/error.log exists
  16. [--] Log file: /var/log/mysql/error.log(0B)
  17. [--] Log file /var/log/mysql/error.log is empty. Assuming log-rotation. Use --server-log={file} for explicit file
  18.  
  19. -------- Storage Engine Statistics -----------------------------------------------------------------
  20. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  21. [--] Data in InnoDB tables: 3.2G (Tables: 124)
  22. [OK] Total fragmented tables: 0
  23.  
  24. -------- Analysis Performance Metrics --------------------------------------------------------------
  25. [--] innodb_stats_on_metadata: OFF
  26. [OK] No stat updates during querying INFORMATION_SCHEMA.
  27.  
  28. -------- Views Metrics -----------------------------------------------------------------------------
  29.  
  30. -------- Triggers Metrics --------------------------------------------------------------------------
  31.  
  32. -------- Routines Metrics --------------------------------------------------------------------------
  33.  
  34. -------- Security Recommendations ------------------------------------------------------------------
  35. [--] Skipped due to --skippassword option
  36.  
  37. -------- CVE Security Recommendations --------------------------------------------------------------
  38. [--] Skipped due to --cvefile option undefined
  39.  
  40. -------- Performance Metrics -----------------------------------------------------------------------
  41. [--] Up for: 35d 21h 4m 32s (270M q [87.241 qps], 34M conn, TX: 1705G, RX: 65G)
  42. [--] Reads / Writes: 72% / 28%
  43. [--] Binary logging is disabled
  44. [--] Physical Memory : 31.4G
  45. [--] Max MySQL memory : 97.1G
  46. [--] Other process memory: 0B
  47. [--] Total buffers: 6.7G global + 46.3M per thread (2000 max threads)
  48. [--] P_S Max memory usage: 0B
  49. [--] Galera GCache Max memory usage: 0B
  50. [--] Global Buffers
  51. [--] +-- Key Buffer: 35.0M
  52. [--] +-- Max Tmp Table: 500.0M
  53. [--] Query Cache Buffers
  54. [--] +-- Query Cache: OFF - DISABLED
  55. [--] +-- Query Cache Size: 0B
  56. [--] Per Thread Buffers
  57. [--] +-- Read Buffer: 2.0M
  58. [--] +-- Read RND Buffer: 16.0M
  59. [--] +-- Sort Buffer: 8.0M
  60. [--] +-- Thread stack: 292.0K
  61. [--] +-- Join Buffer: 4.0M
  62. [!!] Maximum reached memory usage: 55.3G (176.00% of installed RAM)
  63. [!!] Maximum possible memory usage: 97.1G (309.18% of installed RAM)
  64. [!!] Overall possible memory usage with other process exceeded memory
  65. [OK] Slow queries: 0% (14K/270M)
  66. [OK] Highest usage of available connections: 53% (1075/2000)
  67. [OK] Aborted connections: 0.00% (0/34587654)
  68. [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
  69. [OK] Sorts requiring temporary tables: 0% (13 temp sorts / 18M sorts)
  70. [OK] No joins without indexes
  71. [OK] Temporary tables created on disk: 0% (42K on disk / 19M total)
  72. [OK] Thread cache hit rate: 98% (443K created / 34M connections)
  73. [OK] Table cache hit rate: 99% (458M hits / 458M requests)
  74. [OK] table_definition_cache(2000) is upper than number of tables(285)
  75. [OK] Open file limit used: 0% (85/1M)
  76. [OK] Table locks acquired immediately: 100% (6K immediate / 6K locks)
  77.  
  78. -------- Performance schema ------------------------------------------------------------------------
  79. [--] Performance schema is disabled.
  80. [!!] Performance_schema should be activated.
  81. [--] Sys schema isn't installed.
  82.  
  83. -------- ThreadPool Metrics ------------------------------------------------------------------------
  84. [--] ThreadPool stat is disabled.
  85.  
  86. -------- MyISAM Metrics ----------------------------------------------------------------------------
  87. [!!] Key buffer used: 18.2% (6.4M used / 35.0M cache)
  88. [OK] Key buffer size / total MyISAM indexes: 35.0M/124.0K
  89. [OK] Read Key buffer hit rate: 99.2% (7K cached / 60 reads)
  90.  
  91. -------- InnoDB Metrics ----------------------------------------------------------------------------
  92. [--] InnoDB is enabled.
  93. [--] InnoDB Buffers
  94. [--] +-- InnoDB Buffer Pool: 6.0G
  95. [--] +-- InnoDB Buffer Pool Instances: 6
  96. [--] +-- InnoDB Buffer Pool Chunk Size: 128.0M
  97. [--] +-- InnoDB Log File Size: 512.0M
  98. [--] +-- InnoDB Log File In Group: 3
  99. [--] +-- InnoDB Total Log File Size: 1.5G(25 % of buffer pool)
  100. [--] +-- InnoDB Log Buffer: 16.0M
  101. [--] +-- InnoDB Log Buffer Free: 188.8K
  102. [--] +-- InnoDB Log Buffer Used: 384.0K
  103. [--] InnoDB Thread Concurrency: 0
  104. [OK] InnoDB File per table is activated
  105. [OK] InnoDB buffer pool / data size: 6.0G/3.2G
  106. [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 512.0M * 3/6.0G should be equal to 25%
  107. [OK] InnoDB buffer pool instances: 6
  108. [--] Number of InnoDB Buffer Pool Chunk : 48 for 6 Buffer Pool Instance(s)
  109. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  110. [OK] InnoDB Read buffer efficiency: 100.00% (82198890975 hits/ 82199025289 total)
  111. [!!] InnoDB Write Log efficiency: 35.16% (9674943 hits/ 27517030 total)
  112. [OK] InnoDB log waits: 0.00% (0 waits / 37191973 writes)
  113.  
  114. -------- Aria Metrics ------------------------------------------------------------------------------
  115. [--] Aria Storage Engine is enabled.
  116. [OK] Aria pagecache size / total Aria indexes: 128.0M/0B
  117. [OK] Aria pagecache hit rate: 99.9% (51M cached / 41K reads)
  118.  
  119. -------- TokuDB Metrics ----------------------------------------------------------------------------
  120. [--] TokuDB is disabled.
  121.  
  122. -------- XtraDB Metrics ----------------------------------------------------------------------------
  123. [--] XtraDB is disabled.
  124.  
  125. -------- Galera Metrics ----------------------------------------------------------------------------
  126. [--] Galera is disabled.
  127.  
  128. -------- Replication Metrics -----------------------------------------------------------------------
  129. [--] Galera Synchronous replication: NO
  130. [--] No replication slave(s) for this server.
  131. [--] Binlog format: MIXED
  132. [--] XA support enabled: ON
  133. [--] Semi synchronous replication Master: OFF
  134. [--] Semi synchronous replication Slave: OFF
  135. [--] This is a standalone server
  136.  
  137. -------- Recommendations ---------------------------------------------------------------------------
  138. General recommendations:
  139. Reduce your overall MySQL memory footprint for system stability
  140. Dedicate this server to your database for highest performance.
  141. Performance schema should be activated for better diagnostics
  142. Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
  143. Variables to adjust:
  144. *** MySQL's maximum memory usage is dangerously high ***
  145. *** Add RAM before increasing MySQL buffer variables ***
  146. performance_schema=ON
  147. key_buffer_size (~ 6M)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement