Advertisement
gOnt

Untitled

Feb 13th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 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 = 0 days 11 hrs 34 min 55 sec
  9. Avg. qps = 753
  10. Total Questions = 31423540
  11. Threads Connected = 704
  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/5.5/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 8 out of 31423561 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 NOT enabled.
  30. You will not be able to do point in time recovery
  31. See http://dev.mysql.com/doc/refman/5.5/en/point-in-time-recovery.html
  32.  
  33. WORKER THREADS
  34. Current thread_cache_size = 20
  35. Current threads_cached = 0
  36. Current threads_per_sec = 0
  37. Historic threads_per_sec = 11
  38. Threads created per/sec are overrunning threads cached
  39. You should raise thread_cache_size
  40.  
  41. MAX CONNECTIONS
  42. Current max_connections = 3500
  43. Current threads_connected = 704
  44. Historic max_used_connections = 708
  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 = 95 M
  50. Current InnoDB data space = 390 M
  51. Current InnoDB buffer pool free = 87 %
  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.83 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 : 770
  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 = 2 M
  76. Current query_cache_limit = 8 M
  77. Current Query cache Memory fill ratio = 33.80 %
  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. MySQL won't cache query results that are larger than query_cache_limit in size
  83.  
  84. SORT OPERATIONS
  85. Current sort_buffer_size = 2 M
  86. Current read_rnd_buffer_size = 256 K
  87. Sort buffer seems to be fine
  88.  
  89. JOINS
  90. Current join_buffer_size = 4.00 M
  91. You have had 10062 queries where a join could not use an index properly
  92. join_buffer_size >= 4 M
  93. This is not advised
  94. You should enable "log-queries-not-using-indexes"
  95. Then look for non indexed joins in the slow query log.
  96.  
  97. OPEN FILES LIMIT
  98. Current open_files_limit = 102400 files
  99. The open_files_limit should typically be set to at least 2x-3x
  100. that of table_cache if you have heavy MyISAM usage.
  101. Your open_files_limit value seems to be fine
  102.  
  103. TABLE CACHE
  104. Current table_open_cache = 16000 tables
  105. Current table_definition_cache = 4096 tables
  106. You have a total of 928 tables
  107. You have 967 open tables.
  108. The table_cache value seems to be fine
  109.  
  110. TEMP TABLES
  111. Current max_heap_table_size = 128 M
  112. Current tmp_table_size = 128 M
  113. Of 23617 temp tables, 10% were created on disk
  114. Created disk tmp tables ratio seems fine
  115.  
  116. TABLE SCANS
  117. Current read_buffer_size = 16 M
  118. Current table scan ratio = 588 : 1
  119. read_buffer_size is over 8 MB there is probably no need for such a large read_buffer
  120.  
  121. TABLE LOCKING
  122. Current Lock Wait ratio = 1 : 165604
  123. Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement