Ticket #369: mysqltuner.txt

File mysqltuner.txt, 7.1 KB (added by jim, 5 years ago)

Output from MySQL Tuner in DB Tuner module

Line 
1
2Queries
3
4Uptime in seconds: 353421
5Uptime: 4d 2h 10m 21s
6Questions: 44184575
7% slow queries: 0.008720237775287
8slow query rate: 0.0021318160035334 per day
9Long query time: 2
10Slow query logging: ON
11% reads: 77.487356803695
12% writes: 22.512643196305
13qps: 125.01966493219
14reads per sec: 0.18943151730767 per day
15writes per sec: 0.055036128927277 per day
16Queries: 125.01966493219 per second
17Connections: 360 Thousand
18Bytes sent: 390 Billion
19Bytes received: 10 Billion
20
21
22versions
23
24Supported Version: 5
25Release Series: 5.1
26Minor Version: 49
27Distribution: (Debian)
28Distribution: (Debian)
29
30MySQL Architecture: x86_64
31
32
33Query cache
34
35Query cache efficiency (%): 72.405803474947
36% query cache used: 30.010414123535
37The query cache is not being fully utilized.
38    (Qcache_free_memory / query_cache_size * 100 <80)
39    (5034912 / 16777216 * 100 30.010414123535<80)
40Query cache low memory prunes: 26.640426007509 per second
41Increase query_cache_size -- there are too many low memory prunes.
42    (&hr_bytime(Qcache_lowmem_prunes/Uptime_since_flush_status) =~ /second|minute/)
43    (dbtuner_hr_bytime(9415286/353421) dbtuner_stristr('26.640426007509 per second', array('second', 'minute')))
44Query cache size: 16.0 Mb
45Query cache min result size: 16.0 Mb
46
47
48Sorts
49
50Total sorts: 2071671
51% sorts that cause temporary tables: 0.065792300032196
52rate of sorts that cause temporary tables: 13.88372507576 per hour
53sort_buffer_size: 1.0 Mb
54read_rnd_buffer_size: 32.0 Mb
55Sort rows: 143.50195376053 per second
56There are lots of rows being sorted. Consider using indexes in more queries to avoid sorting too often.
57    (&hr_bytime(Sort_rows/Uptime_since_flush_status) =~ /second|minute/)
58    (dbtuner_hr_bytime(50716604/353421) dbtuner_stristr('143.50195376053 per second', array('second', 'minute')))
59
60Joins,scans
61
62rate of joins without indexes: 1.638782075768 per second
63There are too many joins without indexes -- this means that joins are doing full table scans.
64    (&hr_bytime((Select_range_check + Select_scan + Select_full_join)/Uptime_since_flush_status) =~ /second|minute/)
65    (dbtuner_hr_bytime((0 + 494507 + 84673)/353421) dbtuner_stristr('1.638782075768 per second', array('second', 'minute')))
66rate of reading first index entry: 43.580262632951 per minute
67The rate of reading the first index entry is high; this usually indicates frequent full index scans.
68    (&hr_bytime(Handler_read_first/Uptime_since_flush_status) =~ /second|minute/)
69    (dbtuner_hr_bytime(256703/353421) dbtuner_stristr('43.580262632951 per minute', array('second', 'minute')))
70rate of reading fixed position: 99.38185619983 per second
71The rate of reading data from a fixed position is high; this indicates many queries need to sort results and/or do a full table scan, including join queries that do not use indexes.
72    (&hr_bytime(Handler_read_rnd/Uptime_since_flush_status) =~ /second|minute/)
73    (dbtuner_hr_bytime(35123635/353421) dbtuner_stristr('99.38185619983 per second', array('second', 'minute')))
74rate of reading next table row: 4523.9129593318 per second
75The rate of reading the next table row is high; this indicates many queries are doing full table scans.
76    (&hr_bytime(Handler_read_rnd_next/Uptime_since_flush_status) =~ /second|minute/)
77    (dbtuner_hr_bytime(1598845842/353421) dbtuner_stristr('4523.9129593318 per second', array('second', 'minute')))
78
79temp tables
80
81tmp_table_size-max_heap_table_size: 0
82tmp_table_size: 16.0 Mb
83max_heap_table_size: 16.0 Mb
84% temp disk tables: 28.294290280249
85Too many temporary tables are being written to disk. Increase max_heap_table_size and tmp_table_size.
86    (Created_tmp_disk_tables / (Created_tmp_tables + Created_tmp_disk_tables) * 100 >25)
87    (649423 / (1645821 + 649423) * 100 28.294290280249>25)
88temp disk rate: 1.8375337062597 per second
89Too many temporary tables are being written to disk. Increase max_heap_table_size and tmp_table_size.
90    (&hr_bytime(Created_tmp_disk_tables/Uptime_since_flush_status) =~ /second|minute/)
91    (dbtuner_hr_bytime(649423/353421) dbtuner_stristr('1.8375337062597 per second', array('second', 'minute')))
92temp table rate: 4.6568285415977 per second
93Too many intermediate temporary tables are being created; consider increasing sort_buffer_size (sorting), read_rnd_buffer_size (random read buffer, ie, post-sort), read_buffer_size (sequential scan).
94    (&hr_bytime(Created_tmp_tables/Uptime_since_flush_status) =~ /second|minute/)
95    (dbtuner_hr_bytime(1645821/353421) dbtuner_stristr('4.6568285415977 per second', array('second', 'minute')))
96
97
98MyISAM index cache
99
100MyISAM key buffer size: 128.0 Mb
101max % MyISAM key buffer ever used: 55.672454833984
102MyISAM key buffer (index cache) % used is low. You may need to decrease the size of key_buffer_size, re-examine your tables to see if indexes have been removed, or examine queries and expectations about what indexes are being used.
103    ((Key_blocks_used)*key_cache_block_size/key_buffer_size * 100 <95)
104    ((72971)*1024/134217728 * 100 55.672454833984<95)
105% MyISAM key buffer used: 66.635131835938
106MyISAM key buffer (index cache) % used is low. You may need to decrease the size of key_buffer_size, re-examine your tables to see if indexes have been removed, or examine queries and expectations about what indexes are being used.
107    ((1-Key_blocks_unused*key_cache_block_size/key_buffer_size) * 100 <95)
108    ((1-43732*1024/134217728) * 100 66.635131835938<95)
109% index reads from memory: 99.996478938936
110
111
112other caches
113
114table open cache size (5.1+): 2048
115Size of the table cache
116    (table_open_cache >-1)
117    (2048 2048>-1)
118rate of table open: 1.5333554033292 per minute
119The rate of opening tables is high, increase table_open_cache to avoid this.
120    (&hr_bytime(Opened_tables/Uptime_since_flush_status) =~ /second|minute/)
121    (dbtuner_hr_bytime(9032/353421) dbtuner_stristr('1.5333554033292 per minute', array('second', 'minute')))
122% open files: 60.934930702373
123rate of open files: 26.422878097227 per hour
124Immediate table locks %: 99.959572846793
125Table lock wait rate: 1.3111275221337 per minute
126Too many table locks were not granted immediately. Optimize queries and/or use InnoDB to reduce lock wait.
127    (&hr_bytime(Table_locks_waited/Uptime_since_flush_status) =~ /second|minute/)
128    (dbtuner_hr_bytime(7723/353421) dbtuner_stristr('1.3111275221337 per minute', array('second', 'minute')))
129thread cache: 8
130Total threads created: 342
131thread cache hit rate %: 0.00094877713169692
132Threads that are slow to launch: 0
133Slow launch time: 2
134
135
136Connections
137
138% connections used: 23.17880794702
139Max connections used: 35
140Max connections limit: 151
141% aborted connections: 0.00055484042789294
142rate of aborted connections: 0.48893529246989 per day
143% aborted clients: 0.00083226064183941
144rate of aborted clients: 0.73340293870483 per day
145
146
147InnoDB
148
149Is InnoDB enabled?: YES
150% innoDB log size: 62.5
151InnoDB log file size is not an appropriate size, in relation to the InnoDB buffer pool. Consider changing either\ninnodb_log_file_size or innodb_buffer_pool_size
152    (innodb_log_file_size / innodb_buffer_pool_size * 100 >=0)
153    (5242880 / 8388608 * 100 62.5>=0)
154
155
156other
157
158MyISAM concurrent inserts: 1
159
160INSERT DELAYED USAGE
161
162
163Delayed_errors 0
164
165
166Delayed_insert_threads 0
167
168
169Delayed_writes 0
170
171
172Not_flushed_delayed_rows
173