Guest User

Untitled

a guest
Jun 4th, 2021
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.25 KB | None | 0 0
  1. [nos_admin@hun25-13v mysqltuner]$ perl mysqltuner.pl --host 127.0.0.1
  2. >> MySQLTuner 1.7.25 - Major Hayden <[email protected]>
  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. [--] Performing tests on 127.0.0.1:3306
  8. Please enter your MySQL administrative login: root
  9. Please enter your MySQL administrative password: [OK] Currently running supported MySQL version 8.0.25
  10. [OK] Operating on 64-bit architecture
  11.  
  12. -------- Log file Recommendations ------------------------------------------------------------------
  13. [OK] Log file /var/log/mysqld.log exists
  14. [--] Log file: /var/log/mysqld.log(1018K)
  15. [OK] Log file /var/log/mysqld.log is not empty
  16. [OK] Log file /var/log/mysqld.log is smaller than 32 Mb
  17. [OK] Log file /var/log/mysqld.log is readable.
  18. [!!] /var/log/mysqld.log contains 1004 warning(s).
  19. [!!] /var/log/mysqld.log contains 514 error(s).
  20. [--] 609 start(s) detected in /var/log/mysqld.log
  21. [--] 1) 2021-05-11T08:32:26.199637Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.25' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
  22. [--] 2) 2021-05-11T08:32:12.126087Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  23. [--] 3) 2021-05-09T10:09:05.539727Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.24' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
  24. [--] 4) 2021-05-09T10:09:05.320332Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  25. [--] 5) 2021-05-09T10:06:21.411199Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.24' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
  26. [--] 6) 2021-05-09T10:06:02.553875Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  27. [--] 7) 2021-03-03T09:28:58.408553Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
  28. [--] 8) 2021-03-03T09:28:57.145339Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  29. [--] 9) 2021-02-09T12:39:03.202371Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
  30. [--] 10) 2021-02-09T12:39:03.033540Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
  31. [--] 92 shutdown(s) detected in /var/log/mysqld.log
  32. [--] 1) 2021-05-11T08:32:01.244619Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.24) MySQL Community Server - GPL.
  33. [--] 2) 2021-05-09T10:08:16.094767Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.24) MySQL Community Server - GPL.
  34. [--] 3) 2021-05-09T10:05:54.130971Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
  35. [--] 4) 2021-03-03T09:28:49.348412Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
  36. [--] 5) 2021-02-09T12:36:32.417994Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
  37. [--] 6) 2021-02-09T12:34:31.303215Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
  38. [--] 7) 2021-02-04T08:30:50.740734Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
  39. [--] 8) 2021-01-13T07:51:18.048343Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
  40. [--] 9) 2020-12-14T10:00:52.508504Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
  41. [--] 10) 2020-11-18T11:29:53.051294Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
  42.  
  43. -------- Storage Engine Statistics -----------------------------------------------------------------
  44. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  45. [--] Data in MyISAM tables: 22.9M (Tables: 18)
  46. [--] Data in InnoDB tables: 59.0G (Tables: 402)
  47. [OK] Total fragmented tables: 0
  48.  
  49. -------- Analysis Performance Metrics --------------------------------------------------------------
  50. [--] innodb_stats_on_metadata: OFF
  51. [OK] No stat updates during querying INFORMATION_SCHEMA.
  52.  
  53. -------- Security Recommendations ------------------------------------------------------------------
  54. [--] Skipped due to unsupported feature for MySQL 8
  55.  
  56. -------- CVE Security Recommendations --------------------------------------------------------------
  57. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  58.  
  59. -------- Performance Metrics -----------------------------------------------------------------------
  60. [--] Up for: 24d 0h 2m 18s (85M q [41.280 qps], 1M conn, TX: 1062G, RX: 35G)
  61. [--] Reads / Writes: 85% / 15%
  62. [--] Binary logging is enabled (GTID MODE: OFF)
  63. [--] Physical Memory : 23.4G
  64. [--] Max MySQL memory : 16.9G
  65. [--] Other process memory: 0B
  66. [--] Total buffers: 16.0G global + 5.6M per thread (151 max threads)
  67. [--] P_S Max memory usage: 72B
  68. [--] Galera GCache Max memory usage: 0B
  69. [OK] Maximum reached memory usage: 16.1G (68.96% of installed RAM)
  70. [OK] Maximum possible memory usage: 16.9G (72.16% of installed RAM)
  71. [OK] Overall possible memory usage with other process is compatible with memory available
  72. [OK] Slow queries: 0% (0/85M)
  73. [OK] Highest usage of available connections: 9% (14/151)
  74. [OK] Aborted connections: 0.02% (322/1974426)
  75. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  76. [--] Query cache have been removed in MySQL 8
  77. [OK] Sorts requiring temporary tables: 3% (318K temp sorts / 8M sorts)
  78. [!!] Joins performed without indexes: 4665466
  79. [OK] Temporary tables created on disk: 0% (585 on disk / 13M total)
  80. [OK] Thread cache hit rate: 99% (14 created / 1M connections)
  81. [!!] Table cache hit rate: 0% (2K open / 1M opened)
  82. [OK] table_definition_cache(1400) is upper than number of tables(747)
  83. [OK] Open file limit used: 0% (2/10K)
  84. [OK] Table locks acquired immediately: 100% (143K immediate / 143K locks)
  85. [OK] Binlog cache memory access: 99.99% (6909316 Memory / 6910312 Total)
  86.  
  87. -------- Performance schema ------------------------------------------------------------------------
  88. [--] Memory used by P_S: 72B
  89. [--] Sys schema is installed.
  90.  
  91. -------- ThreadPool Metrics ------------------------------------------------------------------------
  92. [--] ThreadPool stat is disabled.
  93.  
  94. -------- MyISAM Metrics ----------------------------------------------------------------------------
  95. [--] MyISAM Metrics are disabled on last MySQL versions.
  96.  
  97. -------- InnoDB Metrics ----------------------------------------------------------------------------
  98. [--] InnoDB is enabled.
  99. [--] InnoDB Thread Concurrency: 0
  100. [OK] InnoDB File per table is activated
  101. [!!] InnoDB buffer pool / data size: 16.0G/59.0G
  102. [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 2.0G * 2/16.0G should be equal to 25%
  103. [OK] InnoDB buffer pool instances: 16
  104. [--] Number of InnoDB Buffer Pool Chunk : 16 for 16 Buffer Pool Instance(s)
  105. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  106. [OK] InnoDB Read buffer efficiency: 100.00% (185116977940 hits/ 185118987101 total)
  107. [OK] InnoDB Write log efficiency: 91.75% (240921469 hits/ 262594002 total)
  108. [OK] InnoDB log waits: 0.00% (0 waits / 21672533 writes)
  109.  
  110. -------- Aria Metrics ------------------------------------------------------------------------------
  111. [--] Aria Storage Engine not available.
  112.  
  113. -------- TokuDB Metrics ----------------------------------------------------------------------------
  114. [--] TokuDB is disabled.
  115.  
  116. -------- XtraDB Metrics ----------------------------------------------------------------------------
  117. [--] XtraDB is disabled.
  118.  
  119. -------- Galera Metrics ----------------------------------------------------------------------------
  120. [--] Galera is disabled.
  121.  
  122. -------- Replication Metrics -----------------------------------------------------------------------
  123. [--] Galera Synchronous replication: NO
  124. [--] No replication slave(s) for this server.
  125. [--] Binlog format: ROW
  126. [--] XA support enabled: ON
  127. [--] Semi synchronous replication Master: Not Activated
  128. [--] Semi synchronous replication Slave: Not Activated
  129. [--] This is a standalone server
  130.  
  131. -------- Recommendations ---------------------------------------------------------------------------
  132. General recommendations:
  133. Control warning line(s) into /var/log/mysqld.log file
  134. Control error line(s) into /var/log/mysqld.log file
  135. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  136. We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found.
  137. See https://dev.mysql.com/doc/internals/en/join-buffer-size.html
  138. (specially the conclusions at the bottom of the page).
  139. Increase table_open_cache gradually to avoid file descriptor limits
  140. Read this before increasing table_open_cache over 64: https://bit.ly/2Fulv7r
  141. Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
  142. This is MyISAM only table_cache scalability problem, InnoDB not affected.
  143. See more details here: https://bugs.mysql.com/bug.php?id=49177
  144. This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
  145. Beware that open_files_limit (10000) variable
  146. should be greater than table_open_cache (2000)
  147. Variables to adjust:
  148. join_buffer_size (> 768.0K, or always use indexes with JOINs)
  149. table_open_cache (> 2000)
  150. innodb_buffer_pool_size (>= 59.0G) if possible.
  151.  
Add Comment
Please, Sign In to add comment