Advertisement
gOnt

Untitled

Feb 12th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. root@fange:/home# ./tuning-primer.sh
  2.  
  3. -- MYSQL PERFORMANCE TUNING PRIMER --
  4. - By: Matthew Montgomery -
  5.  
  6. MySQL Version 5.5.54-0+deb8u1 x86_64
  7.  
  8. Uptime = 213503982334601 days 6 hrs 48 min 2 sec
  9. Avg. qps = 0
  10. Total Questions = 632588
  11. Threads Connected = 703
  12.  
  13. ./tuning-primer.sh: 550: [: Illegal number: 18446744073709550882
  14. Warning: Server has not been running for at least 48hrs.
  15. It may not be safe to use these recommendations
  16.  
  17. To find out more information on how each of these
  18. runtime variables effects performance visit:
  19. http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html
  20. Visit http://www.mysql.com/products/enterprise/advisors.html
  21. for info about MySQL's Enterprise Monitoring and Advisory Service
  22.  
  23. SLOW QUERIES
  24. The slow query log is NOT enabled.
  25. Current long_query_time = 10.000000 sec.
  26. You have 2 out of 632611 that take longer than 10.000000 sec. to complete
  27. Your long_query_time seems to be fine
  28.  
  29. BINARY UPDATE LOG
  30. The binary update log is NOT enabled.
  31. You will not be able to do point in time recovery
  32. See http://dev.mysql.com/doc/refman/5.5/en/point-in-time-recovery.html
  33.  
  34. WORKER THREADS
  35. Current thread_cache_size = 20
  36. Current threads_cached = 1
  37. Current threads_per_sec = 0
  38. Historic threads_per_sec = 0
  39. Your thread_cache_size is fine
  40.  
  41. MAX CONNECTIONS
  42. Current max_connections = 3500
  43. Current threads_connected = 703
  44. Historic max_used_connections = 706
  45. The number of used connections is 20% of the configured maximum.
  46. Your max_connections variable seems to be fine.
  47.  
  48. INNODB STATUS
  49. Current InnoDB index space = 89 M
  50. Current InnoDB data space = 375 M
  51. Current InnoDB buffer pool free = 90 %
  52. Current innodb_buffer_pool_size = 4.00 G
  53. Depending on how much space your innodb indexes take up it may be safe
  54. to increase this value to up to 2 / 3 of total system memory
  55.  
  56. MEMORY USAGE
  57. Max Memory Ever Allocated : 19.78 G
  58. Configured Max Per-thread Buffers : 76.90 G
  59. Configured Max Global Buffers : 4.27 G
  60. Configured Max Memory Limit : 81.17 G
  61. Physical Memory : 47.26 G
  62.  
  63. Max memory limit exceeds 90% of physical memory
  64.  
  65. KEY BUFFER
  66. Current MyISAM index space = 88 M
  67. Current key_buffer_size = 256 M
  68. Key cache miss rate is 1 : 62
  69. Key buffer free ratio = 80 %
  70. Your key_buffer_size seems to be fine
  71.  
  72. QUERY CACHE
  73. Query cache is enabled
  74. Current query_cache_size = 8 M
  75. Current query_cache_used = 1 M
  76. Current query_cache_limit = 8 M
  77. Current Query cache Memory fill ratio = 21.55 %
  78. Current query_cache_min_res_unit = 4 K
  79. Query Cache is 23 % fragmented
  80. Run "FLUSH QUERY CACHE" periodically to defragment the query cache memory
  81. If you have many small queries lower 'query_cache_min_res_unit' to reduce fragmentation.
  82. Your query_cache_size seems to be too high.
  83. Perhaps you can use these resources elsewhere
  84. MySQL won't cache query results that are larger than query_cache_limit in size
  85.  
  86. SORT OPERATIONS
  87. Current sort_buffer_size = 2 M
  88. Current read_rnd_buffer_size = 256 K
  89. Sort buffer seems to be fine
  90.  
  91. JOINS
  92. Current join_buffer_size = 4.00 M
  93. You have had 614 queries where a join could not use an index properly
  94. join_buffer_size >= 4 M
  95. This is not advised
  96. You should enable "log-queries-not-using-indexes"
  97. Then look for non indexed joins in the slow query log.
  98.  
  99. OPEN FILES LIMIT
  100. Current open_files_limit = 102400 files
  101. The open_files_limit should typically be set to at least 2x-3x
  102. that of table_cache if you have heavy MyISAM usage.
  103. Your open_files_limit value seems to be fine
  104.  
  105. TABLE CACHE
  106. Current table_open_cache = 16000 tables
  107. Current table_definition_cache = 4096 tables
  108. You have a total of 928 tables
  109. You have 947 open tables.
  110. The table_cache value seems to be fine
  111.  
  112. TEMP TABLES
  113. Current max_heap_table_size = 128 M
  114. Current tmp_table_size = 128 M
  115. Of 1419 temp tables, 6% were created on disk
  116. Created disk tmp tables ratio seems fine
  117.  
  118. TABLE SCANS
  119. Current read_buffer_size = 16 M
  120. Current table scan ratio = 395 : 1
  121. read_buffer_size is over 8 MB there is probably no need for such a large read_buffer
  122.  
  123. TABLE LOCKING
  124. Current Lock Wait ratio = 1 : 58771
  125. Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement