Advertisement
gOnt

Untitled

Feb 12th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 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 27 min 54 sec
  9. Avg. qps = 0
  10. Total Questions = 331701
  11. Threads Connected = 803
  12.  
  13. ./tuning-primer.sh: 550: [: Illegal number: 18446744073709549674
  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 0 out of 331726 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 = 0
  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 = 15000
  43. Current threads_connected = 803
  44. Historic max_used_connections = 805
  45. The number of used connections is 5% of the configured maximum.
  46. You are using less than 10% of your configured max_connections.
  47. Lowering max_connections could help to avoid an over-allocation of memory
  48. See "MEMORY USAGE" section to make sure you are not over-allocating
  49.  
  50. INNODB STATUS
  51. Current InnoDB index space = 91 M
  52. Current InnoDB data space = 380 M
  53. Current InnoDB buffer pool free = 89 %
  54. Current innodb_buffer_pool_size = 4.00 G
  55. Depending on how much space your innodb indexes take up it may be safe
  56. to increase this value to up to 2 / 3 of total system memory
  57.  
  58. MEMORY USAGE
  59. Max Memory Ever Allocated : 22.00 G
  60. Configured Max Per-thread Buffers : 329.58 G
  61. Configured Max Global Buffers : 4.31 G
  62. Configured Max Memory Limit : 333.90 G
  63. Physical Memory : 47.26 G
  64.  
  65. Max memory limit exceeds 90% of physical memory
  66.  
  67. KEY BUFFER
  68. Current MyISAM index space = 88 M
  69. Current key_buffer_size = 256 M
  70. Key cache miss rate is 1 : 83
  71. Key buffer free ratio = 80 %
  72. Your key_buffer_size seems to be fine
  73.  
  74. QUERY CACHE
  75. Query cache is enabled
  76. Current query_cache_size = 48 M
  77. Current query_cache_used = 11 M
  78. Current query_cache_limit = 8 M
  79. Current Query cache Memory fill ratio = 22.99 %
  80. Current query_cache_min_res_unit = 4 K
  81. Your query_cache_size seems to be too high.
  82. Perhaps you can use these resources elsewhere
  83. MySQL won't cache query results that are larger than query_cache_limit in size
  84.  
  85. SORT OPERATIONS
  86. Current sort_buffer_size = 2 M
  87. Current read_rnd_buffer_size = 256 K
  88. Sort buffer seems to be fine
  89.  
  90. JOINS
  91. Current join_buffer_size = 4.00 M
  92. You have had 311 queries where a join could not use an index properly
  93. join_buffer_size >= 4 M
  94. This is not advised
  95. You should enable "log-queries-not-using-indexes"
  96. Then look for non indexed joins in the slow query log.
  97.  
  98. OPEN FILES LIMIT
  99. Current open_files_limit = 102400 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 = 16000 tables
  106. Current table_definition_cache = 4096 tables
  107. You have a total of 928 tables
  108. You have 956 open tables.
  109. The table_cache value seems to be fine
  110.  
  111. TEMP TABLES
  112. Current max_heap_table_size = 128 M
  113. Current tmp_table_size = 128 M
  114. Of 1235 temp tables, 10% were created on disk
  115. Created disk tmp tables ratio seems fine
  116.  
  117. TABLE SCANS
  118. Current read_buffer_size = 16 M
  119. Current table scan ratio = 428 : 1
  120. read_buffer_size is over 8 MB there is probably no need for such a large read_buffer
  121.  
  122. TABLE LOCKING
  123. Current Lock Wait ratio = 1 : 17602
  124. Your table locking seems to be fine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement