Advertisement
VincentTeyssier

Untitled

Aug 14th, 2021
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 19.65 KB | None | 0 0
  1.  >>  MySQLTuner 1.7.20 - Major Hayden <major@mhtx.net>
  2.  >>  Bug reports, feature requests, and downloads at http://mysqltuner.pl/
  3.  >>  Run with '--help' for additional options and output filtering
  4.  
  5. [--] Skipped version check for MySQLTuner script
  6. [--] Performing tests on 127.0.0.1:xx
  7. [OK] Logged in using credentials from Debian maintenance account.
  8. [OK] Currently running supported MySQL version 8.0.26-0ubuntu0.20.04.2
  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(2K)
  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 14 warning(s).
  18. [OK] /var/log/mysql/error.log doesn't contain any error.
  19. [--] 2 start(s) detected in /var/log/mysql/error.log
  20. [--] 1) 2021-08-09T10:07:01.107487Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.26-0ubuntu0.20.04.2'  socket: '/var/run/mysqld/mysqld.sock'  port: xxx  (Ubuntu).
  21. [--] 2) 2021-08-09T10:07:01.107433Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: 'xxx' port: xxx, socket: /var/run/mysqld/mysqlx.sock
  22. [--] 1 shutdown(s) detected in /var/log/mysql/error.log
  23. [--] 1) 2021-08-09T10:06:55.061381Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.26-0ubuntu0.20.04.2)  (Ubuntu).
  24.  
  25. -------- Storage Engine Statistics -----------------------------------------------------------------
  26. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  27. [--] Data in InnoDB tables: 155.8G (Tables: 50)
  28. [!!] Total fragmented tables: 1
  29.  
  30. -------- Analysis Performance Metrics --------------------------------------------------------------
  31. [--] innodb_stats_on_metadata: OFF
  32. [OK] No stat updates during querying INFORMATION_SCHEMA.
  33.  
  34. -------- Security Recommendations ------------------------------------------------------------------
  35. [--] Skipped due to unsupported feature for MySQL 8
  36.  
  37. -------- CVE Security Recommendations --------------------------------------------------------------
  38. [OK] NO SECURITY CVE FOUND FOR YOUR VERSION
  39.  
  40. -------- Performance Metrics -----------------------------------------------------------------------
  41. [--] Up for: 1m 7s (318 q [4.746 qps], 20 conn, TX: 18M, RX: 33K)
  42. [--] Reads / Writes: 13% / 87%
  43. [--] Binary logging is enabled (GTID MODE: OFF)
  44. [--] Physical Memory     : 25.5G
  45. [--] Max MySQL memory    : 24.4G
  46. [--] Other process memory: 0B
  47. [--] Total buffers: 9.0G global + 224.4M per thread (70 max threads)
  48. [--] P_S Max memory usage: 72B
  49. [--] Galera GCache Max memory usage: 0B
  50. [OK] Maximum reached memory usage: 10.6G (41.57% of installed RAM)
  51. [!!] Maximum possible memory usage: 24.4G (95.80% of installed RAM)
  52. [OK] Overall possible memory usage with other process is compatible with memory available
  53. [OK] Slow queries: 0% (0/318)
  54. [OK] Highest usage of available connections: 10% (7/70)
  55. [OK] Aborted connections: 0.00%  (0/20)
  56. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  57. [--] Query cache have been removed in MySQL 8
  58. [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 6 sorts)
  59. [OK] No joins without indexes
  60. [OK] Temporary tables created on disk: 0% (0 on disk / 13 total)
  61. [OK] Thread cache hit rate: 65% (7 created / 20 connections)
  62. [OK] Table cache hit rate: 69% (187 open / 268 opened)
  63. [OK] table_definition_cache(2000) is upper than number of tables(376)
  64. [OK] Open file limit used: 0% (2/10K)
  65. [OK] Table locks acquired immediately: 100% (24 immediate / 24 locks)
  66. [OK] Binlog cache memory access: 100.00% (47 Memory / 47 Total)
  67.  
  68. -------- Performance schema ------------------------------------------------------------------------
  69. [--] Memory used by P_S: 72B
  70. [--] Sys schema is installed.
  71.  
  72. -------- ThreadPool Metrics ------------------------------------------------------------------------
  73. [--] ThreadPool stat is disabled.
  74.  
  75. -------- MyISAM Metrics ----------------------------------------------------------------------------
  76. [--] MyISAM Metrics are disabled on last MySQL versions.
  77.  
  78. -------- InnoDB Metrics ----------------------------------------------------------------------------
  79. [--] InnoDB is enabled.
  80. [--] InnoDB Thread Concurrency: 0
  81. [OK] InnoDB File per table is activated
  82. [!!] InnoDB buffer pool / data size: 9.0G/155.8G
  83. [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 1.0G * 2/9.0G should be equal to 25%
  84. [!!] InnoDB buffer pool instances: 6
  85. [--] Number of InnoDB Buffer Pool Chunk : 72 for 6 Buffer Pool Instance(s)
  86. [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
  87. [!!] InnoDB Read buffer efficiency: 49.97% (144791 hits/ 289752 total)
  88. [!!] InnoDB Write Log efficiency: 49.66% (3615 hits/ 7279 total)
  89. [OK] InnoDB log waits: 0.00% (0 waits / 3664 writes)
  90.  
  91. -------- AriaDB Metrics ----------------------------------------------------------------------------
  92. [--] AriaDB is disabled.
  93.  
  94. -------- TokuDB Metrics ----------------------------------------------------------------------------
  95. [--] TokuDB is disabled.
  96.  
  97. -------- XtraDB Metrics ----------------------------------------------------------------------------
  98. [--] XtraDB is disabled.
  99.  
  100. -------- Galera Metrics ----------------------------------------------------------------------------
  101. [--] Galera is disabled.
  102.  
  103. -------- Replication Metrics -----------------------------------------------------------------------
  104. [--] Galera Synchronous replication: NO
  105. [--] No replication slave(s) for this server.
  106. [--] Binlog format: ROW
  107. [--] XA support enabled: ON
  108. [--] Semi synchronous replication Master: Not Activated
  109. [--] Semi synchronous replication Slave: Not Activated
  110. [--] This is a standalone server
  111.  
  112. -------- Recommendations ---------------------------------------------------------------------------
  113. General recommendations:
  114.    Control warning line(s) into /var/log/mysql/error.log file
  115.    Run OPTIMIZE TABLE to defragment tables for better performance
  116.      OPTIMIZE TABLE `xxx`.`xxx`; -- can free 839 MB
  117.    Total freed space after theses OPTIMIZE TABLE : 839 Mb
  118.    Reduce your overall MySQL memory footprint for system stability
  119.    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  120. Variables to adjust:
  121.  *** MySQL's maximum memory usage is dangerously high ***
  122.   *** Add RAM before increasing MySQL buffer variables ***
  123.     innodb_buffer_pool_size (>= 155.8G) if possible.
  124.     innodb_buffer_pool_instances(=9)
  125.  
  126.  
  127.  
  128.    
  129.    
  130.    
  131. Aborted_clients 32
  132. Aborted_connects    2
  133. Acl_cache_items_count   0
  134. Binlog_cache_disk_use   225
  135. Binlog_cache_use    6740688
  136. Binlog_stmt_cache_disk_use  0
  137. Binlog_stmt_cache_use   6
  138. Bytes_received  4028027875
  139. Bytes_sent  28886052088
  140. Caching_sha2_password_rsa_public_key    "xxx
  141. ""xxx
  142. "
  143. Secondary_engine_execution_count    0
  144. Select_full_join    27
  145. Select_full_range_join  0
  146. Select_range    168
  147. Select_range_check  0
  148. Select_scan 45028
  149. Slave_open_temp_tables  0
  150. Slow_launch_threads 0
  151. Slow_queries    0
  152. Sort_merge_passes   38
  153. Sort_range  0
  154. Sort_rows   272888935
  155. Sort_scan   10089
  156. Ssl_accept_renegotiates 0
  157. Ssl_accepts 912
  158. Ssl_callback_cache_hits 0
  159. Ssl_cipher 
  160. Ssl_cipher_list
  161. Ssl_client_connects 0
  162. Ssl_connect_renegotiates    0
  163. Ssl_ctx_verify_depth    18446744073709551615
  164. Ssl_ctx_verify_mode 5
  165. Ssl_default_timeout 0
  166. Ssl_finished_accepts    912
  167. Ssl_finished_connects   0
  168. Ssl_server_not_after    Dec 19 11:52:45 2030 GMT
  169. Ssl_server_not_before   Dec 21 11:52:45 2020 GMT
  170. Ssl_session_cache_hits  0
  171. Ssl_session_cache_misses    0
  172. Ssl_session_cache_mode  SERVER
  173. Ssl_session_cache_overflows 0
  174. Ssl_session_cache_size  128
  175. Ssl_session_cache_timeouts  0
  176. Ssl_sessions_reused 0
  177. Ssl_used_session_cache_entries  0
  178. Ssl_verify_depth    0
  179. Ssl_verify_mode 0
  180. Ssl_version
  181. Table_locks_immediate   30657
  182. Table_locks_waited  0
  183. Table_open_cache_hits   9475305
  184. Table_open_cache_misses 1112
  185. Table_open_cache_overflows  0
  186. Tc_log_max_pages_used   0
  187. Tc_log_page_size    0
  188. Tc_log_page_waits   0
  189. Threads_cached  5
  190. Threads_connected   9
  191. Threads_created 161
  192. Threads_running 2
  193. Uptime  94329
  194. Uptime_since_flush_status   94329
  195. validate_password.dictionary_file_last_parsed   2021-08-09 10:07:01
  196. validate_password.dictionary_file_words_count   0
  197.  
  198.  
  199.  
  200.  
  201. 5   event_scheduler localhost       Daemon  94352   Waiting on empty queue 
  202. 9   xxx xxx:45606   twitch  Sleep   1      
  203. 10  yyy xxx:45608       Sleep   7      
  204. 11  yyy xxx:45610       Sleep   7      
  205. 2754    yyy yyy:37228   twitch  Sleep   10413      
  206. 2827    xxxnode1    xxx:45644   twitch  Sleep   7950       
  207. 3043    xxx11   zzz:51272   twitch  Sleep   2      
  208. 3099    xxx mydesktop:39520     Query   0   init    /* ApplicationName=DBeaver 21.1.3 - SQLEditor <test.sql> */ SHOW FULL PROCESSLIST
  209. 3100    xxx mydesktop:39530     Sleep   46     
  210. 3103    xxx mydesktop:39544     Sleep   40     
  211.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement