Advertisement
Guest User

Untitled

a guest
Jan 1st, 2023
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. -- MYSQL PERFORMANCE TUNING PRIMER --
  2. - By: Matthew Montgomery -
  3.  
  4. MySQL Version 10.6.11-MariaDB-0ubuntu0.22.04.1-log x86_64
  5.  
  6. Uptime = 0 days 0 hrs 9 min 13 sec
  7. Avg. qps = 196.34
  8. Total Questions = 108577
  9. Threads Connected = 2
  10.  
  11. Warning: Server has not been running for at least 48hrs.
  12. It may not be safe to use these recommendations
  13.  
  14. To find out more information on how each of these
  15. runtime variables effects performance visit:
  16. http://dev.mysql.com/doc/refman/10.6/en/server-system-variables.html
  17.  
  18. Visit https://github.com/BMDan/tuning-primer.sh for the latest version of
  19. this script, or to suggest improvements.
  20.  
  21. SLOW QUERIES
  22. The slow query log is enabled.
  23. Current long_query_time = 1.000000 sec.
  24. Since startup, 1 out of 108591 queries have taken longer than <long_query_time-when-they-were-executed> to complete.
  25. Your long_query_time seems reasonable.
  26.  
  27. BINARY UPDATE LOG
  28. The binary update log is enabled
  29. Binlog sync is not enabled, you could lose binlog records during a server crash
  30.  
  31. WORKER THREADS
  32. Current thread_cache_size = 128
  33. Current threads_cached = 58
  34. Current threads_per_sec = 0
  35. Historic threads_per_sec = 0
  36. Your thread_cache_size is fine
  37.  
  38. MAX CONNECTIONS
  39. Current max_connections = 200
  40. Current threads_connected = 2
  41. Historic max_used_connections = 60
  42. The number of used connections is 30% of the configured maximum.
  43. Your max_connections variable seems to be fine.
  44.  
  45. INNODB STATUS
  46. Current InnoDB index space = 176 M
  47. Current InnoDB data space = 334 M
  48. Current InnoDB buffer pool free = 56 %
  49. Current innodb_buffer_pool_size = 1.00 G
  50. Depending on how much space your innodb indexes take up it may be safe
  51. to increase this value to up to 2 / 3 of total system memory
  52.  
  53. MEMORY USAGE
  54. Max Memory Ever Allocated : 1.66 G
  55. Configured Max Per-thread Buffers : 1.47 G
  56. Configured Max Global Buffers : 1.21 G
  57. Configured Max Memory Limit : 2.69 G
  58. Physical Memory : 15.62 G
  59. Max memory limit seem to be within acceptable norms
  60.  
  61. KEY BUFFER
  62. No key reads. If you aren't using MyISAM, this is normal. If you are
  63. using MyISAM, this is very, very bad.
  64. Current MyISAM index space = 0 bytes
  65. Current key_buffer_size = 128 M
  66. Key cache miss rate is 1 : 0
  67. Key buffer free ratio = 81 %
  68. Your key_buffer_size seems to be fine
  69.  
  70. QUERY CACHE
  71. You have query cache enabled. With many versions of the server, you may see
  72. query cache lock contention, especially if you have more than one core.
  73. Current query_cache_size = 64 M
  74. Current query_cache_used = 6 M
  75. Current query_cache_limit = 2 M
  76. Current Query cache Memory fill ratio = 10.41 %
  77. Current query_cache_min_res_unit = 2 K
  78. Your query_cache_size seems to be too high.
  79. Perhaps you can use these resources elsewhere
  80. MySQL won't cache query results that are larger than query_cache_limit in size
  81.  
  82. SORT OPERATIONS
  83. Current sort_buffer_size = 4 M
  84. Current read_rnd_buffer_size = 1 M
  85. Sort buffer seems to be fine
  86.  
  87. JOINS
  88. Current join_buffer_size = 260.00 K
  89. You have had 4 queries where a join could not use an index properly
  90. You should enable "log-queries-not-using-indexes"
  91. Then look for non indexed joins in the slow query log.
  92. If you are unable to optimize your queries you may want to increase your
  93. join_buffer_size to accommodate larger joins in one pass.
  94.  
  95. Note! This script will still suggest raising the join_buffer_size when
  96. ANY joins not using indexes are found.
  97.  
  98. OPEN FILES LIMIT
  99. Current open_files_limit = 32235 files
  100. The open_files_limit should typically be set to at least 2x-3x
  101. that of table_cache if you have heavy MyISAM usage.
  102. Your open_files_limit value seems to be fine
  103.  
  104. TABLE CACHE
  105. Current table_open_cache = 2000 tables
  106. Current table_definition_cache = 2000 tables
  107. You have a total of 484 tables
  108. You have 525 open tables.
  109. The table_cache value seems to be fine
  110.  
  111. TEMP TABLES
  112. Current max_heap_table_size = 64 M
  113. Current tmp_table_size = 64 M
  114. Of 3365 temp tables, 18% were created on disk
  115. Created disk tmp tables ratio seems fine
  116.  
  117. TABLE SCANS
  118. Current read_buffer_size = 2 M
  119. Current table scan ratio = 15 : 1
  120. read_buffer_size seems to be fine
  121.  
  122. TABLE LOCKING
  123. Current Lock Wait ratio = 0 : 108775
  124. Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement