Advertisement
gOnt

Untitled

Feb 12th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. Would you like me to create a ~/.my.cnf file for you? [y/N] : y
  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 23 hrs 50 min 29 sec
  9. Avg. qps = 1008
  10. Total Questions = 86520974
  11. Threads Connected = 804
  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 3 out of 86521947 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 = 0
  35. Current threads_cached = 0
  36. Current threads_per_sec = 1
  37. Historic threads_per_sec = 16
  38. Threads created per/sec are overrunning threads cached
  39. You should raise thread_cache_size
  40.  
  41. MAX CONNECTIONS
  42. Current max_connections = 15000
  43. Current threads_connected = 804
  44. Historic max_used_connections = 1011
  45. The number of used connections is 6% 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 = 192 K
  52. Current InnoDB data space = 73 M
  53. Current InnoDB buffer pool free = 40 %
  54. Current innodb_buffer_pool_size = 128 M
  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 : 34.97 G
  60. Configured Max Per-thread Buffers : 479.73 G
  61. Configured Max Global Buffers : 2.64 G
  62. Configured Max Memory Limit : 482.37 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 = 165 M
  69. Current key_buffer_size = 2.00 G
  70. Key cache miss rate is 1 : 19705
  71. Key buffer free ratio = 77 %
  72. Your key_buffer_size seems to be too high.
  73. Perhaps you can use these resources elsewhere
  74.  
  75. QUERY CACHE
  76. Query cache is enabled
  77. Current query_cache_size = 512 M
  78. Current query_cache_used = 33 M
  79. Current query_cache_limit = 1 M
  80. Current Query cache Memory fill ratio = 6.45 %
  81. Current query_cache_min_res_unit = 4 K
  82. Query Cache is 22 % fragmented
  83. Run "FLUSH QUERY CACHE" periodically to defragment the query cache memory
  84. If you have many small queries lower 'query_cache_min_res_unit' to reduce fragmentation.
  85. Your query_cache_size seems to be too high.
  86. Perhaps you can use these resources elsewhere
  87. MySQL won't cache query results that are larger than query_cache_limit in size
  88.  
  89. SORT OPERATIONS
  90. Current sort_buffer_size = 32 M
  91. Current read_rnd_buffer_size = 256 K
  92. Sort buffer seems to be fine
  93.  
  94. JOINS
  95. Current join_buffer_size = 132.00 K
  96. You have had 18757 queries where a join could not use an index properly
  97. You should enable "log-queries-not-using-indexes"
  98. Then look for non indexed joins in the slow query log.
  99. If you are unable to optimize your queries you may want to increase your
  100. join_buffer_size to accommodate larger joins in one pass.
  101.  
  102. Note! This script will still suggest raising the join_buffer_size when
  103. ANY joins not using indexes are found.
  104.  
  105. OPEN FILES LIMIT
  106. Current open_files_limit = 75000 files
  107. The open_files_limit should typically be set to at least 2x-3x
  108. that of table_cache if you have heavy MyISAM usage.
  109. Your open_files_limit value seems to be fine
  110.  
  111. TABLE CACHE
  112. Current table_open_cache = 1024 tables
  113. Current table_definition_cache = 400 tables
  114. You have a total of 926 tables
  115. You have 1024 open tables.
  116. Current table_cache hit rate is 87%
  117. , while 100% of your table cache is in use
  118. You should probably increase your table_cache
  119. You should probably increase your table_definition_cache value.
  120.  
  121. TEMP TABLES
  122. Current max_heap_table_size = 128 M
  123. Current tmp_table_size = 128 M
  124. Of 35546 temp tables, 12% were created on disk
  125. Created disk tmp tables ratio seems fine
  126.  
  127. TABLE SCANS
  128. Current read_buffer_size = 128 K
  129. Current table scan ratio = 420 : 1
  130. read_buffer_size seems to be fine
  131.  
  132. TABLE LOCKING
  133. Current Lock Wait ratio = 1 : 260
  134. You may benefit from selective use of InnoDB.
  135. If you have long running SELECT's against MyISAM tables and perform
  136. frequent updates consider setting 'low_priority_updates=1'
  137. If you have a high concurrency of inserts on Dynamic row-length tables
  138. consider setting 'concurrent_insert=ALWAYS'.
  139.  
  140. root@fange:/home#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement