manoaratefy

Untitled

Apr 24th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.00 KB | None | 0 0
  1. root@vps55436:~# ./mysqltuner.pl
  2. >> MySQLTuner 1.7.15 - 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. [OK] Logged in using credentials from Debian maintenance account.
  8. [OK] Currently running supported MySQL version 10.1.26-MariaDB-0+deb9u1
  9. [OK] Operating on 64-bit architecture
  10.  
  11. -------- Log file Recommendations ------------------------------------------------------------------
  12. [--] Log file: /var/log/mysql/error.log(10K)
  13. [OK] Log file /var/log/mysql/error.log exists
  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 61 warning(s).
  18. [OK] /var/log/mysql/error.log doesn't contain any error.
  19. [--] 0 start(s) detected in /var/log/mysql/error.log
  20. [--] 0 shutdown(s) detected in /var/log/mysql/error.log
  21.  
  22. -------- Storage Engine Statistics -----------------------------------------------------------------
  23. [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
  24. [--] Data in MyISAM tables: 5.8M (Tables: 101)
  25. [--] Data in InnoDB tables: 808.0M (Tables: 2423)
  26. [OK] Total fragmented tables: 0
  27.  
  28. -------- Analysis Performance Metrics --------------------------------------------------------------
  29. [--] innodb_stats_on_metadata: OFF
  30. [OK] No stat updates during querying INFORMATION_SCHEMA.
  31.  
  32. -------- Security Recommendations ------------------------------------------------------------------
  33. [OK] There are no anonymous accounts for any database users
  34. [!!] User 'root@localhost' has no password set.
  35. [!!] User 'MSbeton@%' does not specify hostname restrictions.
  36. [!!] User 'adminmsmedecin@%' does not specify hostname restrictions.
  37. [!!] User 'facarchitest@%' does not specify hostname restrictions.
  38. [!!] There is no basic password file list!
  39.  
  40. -------- CVE Security Recommendations --------------------------------------------------------------
  41. [--] Skipped due to --cvefile option undefined
  42.  
  43. -------- Performance Metrics -----------------------------------------------------------------------
  44. [--] Up for: 4d 13h 5m 30s (7M q [20.145 qps], 217K conn, TX: 24G, RX: 1G)
  45. [--] Reads / Writes: 86% / 14%
  46. [--] Binary logging is disabled
  47. [--] Physical Memory : 8.0G
  48. [--] Max MySQL memory : 3.5G
  49. [--] Other process memory: 0B
  50. [--] Total buffers: 3.3G global + 2.1M per thread (66 max threads)
  51. [--] P_S Max memory usage: 82M
  52. [--] Galera GCache Max memory usage: 0B
  53. [OK] Maximum reached memory usage: 3.5G (43.80% of installed RAM)
  54. [OK] Maximum possible memory usage: 3.5G (44.00% of installed RAM)
  55. [OK] Overall possible memory usage with other process is compatible with memory available
  56. [OK] Slow queries: 0% (0/7M)
  57. [!!] Highest connection usage: 87% (58/66)
  58. [!!] Aborted connections: 6.14% (13378/217859)
  59. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  60. [!!] Query cache may be disabled by default due to mutex contention.
  61. [OK] Query cache efficiency: 43.4% (4M cached / 10M selects)
  62. [!!] Query cache prunes per day: 54692
  63. [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 154K sorts)
  64. [!!] Joins performed without indexes: 2369
  65. [!!] Temporary tables created on disk: 53% (162K on disk / 302K total)
  66. [OK] Thread cache hit rate: 89% (23K created / 217K connections)
  67. [!!] Table cache hit rate: 14% (4K open / 27K opened)
  68. [OK] Open file limit used: 1% (224/16K)
  69. [OK] Table locks acquired immediately: 99% (2M immediate / 2M locks)
  70.  
  71. -------- Performance schema ------------------------------------------------------------------------
  72. [--] Memory used by P_S: 82.1M
  73. [--] Sys schema isn't installed.
  74.  
  75. -------- ThreadPool Metrics ------------------------------------------------------------------------
  76. [--] ThreadPool stat is enabled.
  77. [--] Thread Pool Size: 3 thread(s).
  78. [--] Using default value is good enough for your version (10.1.26-MariaDB-0+deb9u1)
  79.  
  80. -------- MyISAM Metrics ----------------------------------------------------------------------------
  81. [!!] Key buffer used: 18.3% (196M used / 1B cache)
  82. [OK] Key buffer size / total MyISAM indexes: 1.0G/504.0K
  83. [OK] Read Key buffer hit rate: 100.0% (1M cached / 525 reads)
  84. [!!] Write Key buffer hit rate: 66.5% (396K cached / 263K writes)
  85.  
  86. -------- InnoDB Metrics ----------------------------------------------------------------------------
  87. [--] InnoDB is enabled.
  88. [--] InnoDB Thread Concurrency: 0
  89. [OK] InnoDB File per table is activated
  90. [OK] InnoDB buffer pool / data size: 2.0G/808.0M
  91. [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 256.0M * 2/2.0G should be equal to 25%
  92. [OK] InnoDB buffer pool instances: 2
  93. [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
  94. [OK] InnoDB Read buffer efficiency: 99.93% (78682552 hits/ 78734007 total)
  95. [!!] InnoDB Write Log efficiency: 47.12% (583302 hits/ 1238025 total)
  96. [OK] InnoDB log waits: 0.00% (0 waits / 654723 writes)
  97.  
  98. -------- AriaDB Metrics ----------------------------------------------------------------------------
  99. [--] AriaDB is enabled.
  100. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
  101. [!!] Aria pagecache hit rate: 93.0% (2M cached / 159K reads)
  102.  
  103. -------- TokuDB Metrics ----------------------------------------------------------------------------
  104. [--] TokuDB is disabled.
  105.  
  106. -------- XtraDB Metrics ----------------------------------------------------------------------------
  107. [--] XtraDB is disabled.
  108.  
  109. -------- Galera Metrics ----------------------------------------------------------------------------
  110. [--] Galera is disabled.
  111.  
  112. -------- Replication Metrics -----------------------------------------------------------------------
  113. [--] Galera Synchronous replication: NO
  114. [--] No replication slave(s) for this server.
  115. [--] Binlog format: STATEMENT
  116. [--] XA support enabled: ON
  117. [--] Semi synchronous replication Master: Not Activated
  118. [--] Semi synchronous replication Slave: Not Activated
  119. [--] This is a standalone server
  120.  
  121. -------- Recommendations ---------------------------------------------------------------------------
  122. General recommendations:
  123. Control warning line(s) into /var/log/mysql/error.log file
  124. Set up a Password for user with the following SQL statement ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
  125. Restrict Host for user@% to user@SpecificDNSorIp
  126. Reduce or eliminate persistent connections to reduce connection usage
  127. Reduce or eliminate unclosed connections and network issues
  128. Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  129. Adjust your join queries to always utilize indexes
  130. When making adjustments, make tmp_table_size/max_heap_table_size equal
  131. Reduce your SELECT DISTINCT queries which have no LIMIT clause
  132. Increase table_open_cache gradually to avoid file descriptor limits
  133. Read this before increasing table_open_cache over 64: https://bit.ly/1mi7c4C
  134. Read this before increasing for MariaDB https://mariadb.com/kb/en/library/optimizing-table_open_cache/
  135. This is MyISAM only table_cache scalability problem, InnoDB not affected.
  136. See more details here: https://bugs.mysql.com/bug.php?id=49177
  137. This bug already fixed in MySQL 5.7.9 and newer MySQL versions.
  138. Beware that open_files_limit (16364) variable
  139. should be greater than table_open_cache (4096)
  140. Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
  141. Consider installing Sys schema from https://github.com/good-dba/mariadb-sys for MariaDB
  142. Variables to adjust:
  143. max_connections (> 66)
  144. wait_timeout (< 28800)
  145. interactive_timeout (< 28800)
  146. query_cache_size (=0)
  147. query_cache_type (=0)
  148. query_cache_size (> 32M)
  149. join_buffer_size (> 680.0K, or always use indexes with JOINs)
  150. tmp_table_size (> 128M)
  151. max_heap_table_size (> 128M)
  152. table_open_cache (> 4096)
Advertisement
Add Comment
Please, Sign In to add comment