Advertisement
Guest User

tuning-primer.sh

a guest
Mar 10th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. tuning-primer.sh
  2.  
  3. -- MYSQL PERFORMANCE TUNING PRIMER --
  4. - By: Matthew Montgomery -
  5.  
  6. MySQL Version 10.1.31-MariaDB x86_64
  7.  
  8. Uptime = 0 days 23 hrs 3 min 12 sec
  9. Avg. qps = 0
  10. Total Questions = 481
  11. Threads Connected = 2
  12.  
  13. Warning: Server has not been running for at least 48hrs.
  14. It may not be safe to use these recommendations
  15.  
  16. To find out more information on how each of these
  17. runtime variables effects performance visit:
  18. http://dev.mysql.com/doc/refman/10.1/en/server-system-variables.html
  19. Visit http://www.mysql.com/products/enterprise/advisors.html
  20. for info about MySQL's Enterprise Monitoring and Advisory Service
  21.  
  22. SLOW QUERIES
  23. The slow query log is NOT enabled.
  24. Current long_query_time = 10.000000 sec.
  25. You have 0 out of 502 that take longer than 10.000000 sec. to complete
  26. Your long_query_time seems to be fine
  27.  
  28. BINARY UPDATE LOG
  29. The binary update log is enabled
  30.  
  31. WORKER THREADS
  32. Current thread_cache_size = 15
  33. Current threads_cached = 0
  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 = 15
  40. Current threads_connected = 2
  41. Historic max_used_connections = 2
  42. The number of used connections is 13% of the configured maximum.
  43. Your max_connections variable seems to be fine.
  44.  
  45. No InnoDB Support Enabled!
  46.  
  47. MEMORY USAGE
  48. Max Memory Ever Allocated : 42.11 G
  49. Configured Max Per-thread Buffers : 457 M
  50. Configured Max Global Buffers : 42.05 G
  51. Configured Max Memory Limit : 42.50 G
  52. Physical Memory : 48.97 G
  53. Max memory limit seem to be within acceptable norms
  54.  
  55. KEY BUFFER
  56. Current MyISAM index space = 117 K
  57. Current key_buffer_size = 32 M
  58. Key cache miss rate is 1 : 43
  59. Key buffer free ratio = 81 %
  60. Your key_buffer_size seems to be fine
  61.  
  62. QUERY CACHE
  63. Query cache is supported but not enabled
  64. Perhaps you should set the query_cache_size
  65.  
  66. SORT OPERATIONS
  67. Current sort_buffer_size = 2 M
  68. Current read_rnd_buffer_size = 256 K
  69. Sort buffer seems to be fine
  70.  
  71. JOINS
  72. /root/tuning-primer.sh: line 402: export: `2097152': not a valid identifier
  73. Current join_buffer_size = 4.00 M
  74. You have had 2 queries where a join could not use an index properly
  75. join_buffer_size >= 4 M
  76. This is not advised
  77. You should enable "log-queries-not-using-indexes"
  78. Then look for non indexed joins in the slow query log.
  79.  
  80. OPEN FILES LIMIT
  81. Current open_files_limit = 16364 files
  82. The open_files_limit should typically be set to at least 2x-3x
  83. that of table_cache if you have heavy MyISAM usage.
  84. Your open_files_limit value seems to be fine
  85.  
  86. TABLE CACHE
  87. Current table_open_cache = 2048 tables
  88. Current table_definition_cache = 1024 tables
  89. You have a total of 190 tables
  90. You have 199 open tables.
  91. The table_cache value seems to be fine
  92.  
  93. TEMP TABLES
  94. Current max_heap_table_size = 1.00 G
  95. Current tmp_table_size = 1.00 G
  96. Of 911 temp tables, 12% were created on disk
  97. Created disk tmp tables ratio seems fine
  98.  
  99. TABLE SCANS
  100. Current read_buffer_size = 8 M
  101. Current table scan ratio = 394808370 : 1
  102. read_buffer_size seems to be fine
  103.  
  104. TABLE LOCKING
  105. Current Lock Wait ratio = 0 : 688
  106. Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement