-
Notifications
You must be signed in to change notification settings - Fork 0
/
Changes
265 lines (161 loc) · 7.5 KB
/
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
Version 1.9.1: - Mark Grennan
Released 1.9.1 on Feb 14, 2012. Be my Valintine
Added display of system load level on the top line and Readonly state
and Delay to the replication line.
Released 1.9 on July 23, 2010.
Added monitoring of Slave status.
New command '!' to force past a replication error.
Added number of rows sorted per second.
Added a new 'Cmd' column to display the State of the query along with
the statment.
New command 'M' to chnage [mode] to status show changes.
Version 1.8: - Mark Grennan
Released 1.8 on May 21, 2010.
Added fixed for changed in MySQL 5.1 and 64 bit systems.
Completed TODO - "make 'C' togle display color".
New command 'S' command. Highlights slow queries less then 'S' seconds.
The default is 10 seconds.
New command 'l' for long queries. Default is 120 seconds. Queries
longer then is are colored Magenta.
New command 't' to filter based on State.
Removed the 'Daemon' command type from the idle dispaly.
Fixed documentations errors.
Version 1.6:
Released 1.6 on February 16th, 2007.
Added support for passwords with embedded spaces, thanks to patch
from Jeffrey Friedl.
Version 1.4:
Released 1.4 on August 3rd, 2003
Used junk query filter from Steven Roussey <[email protected]>
Added a -prompt option so that you don't need to put the password on
the command-line or in a script. Patches from jon r. luini
<[email protected]> and Sean Leach <[email protected]>
Added -resolve support (convert ips to hostnames in thread view).
Patch from Yogish Baliga <[email protected]>
Used an excellent patch from Per Andreas Buer <[email protected]> to
tidy up the top display. This includes showing most values in short
form, such as 10k rather than 10000. It also fixed query cache hit
% calculation bugs.
Strip port numbbers from the IP addresses in thread view.
Added an "I" command to get at SHOW INNODB STATUS output. Needs
work in a future release.
Added experimental support for reading some options from the [mytop]
section of my.cnf or .my.cnf.
Various other cleanup and fixes.
Version 1.3:
Released 1.3 on April 17, 2003
Added a "c" command to switch between the thread view and "command
summary" view. The command summary pulls the Com_* values from SHOW
STATUS and summarizes them. The UI needs work and I welcome
feedback on how to improve it.
Fixed various bugs. Added regex support for filters. Added the
ability to [K]ill all threads owned by a particular user. Fixed
query cache hit rate computation.
Use the value of Com_select rather than Questions to calculate the
Qcache ratio. Only SELECT queries are candidates for the cache, so
this is far more accurate.
VERSION 1.2:
Released 1.2 on October 27, 2002.
Better handle the MySQL server going off-line (shouldn't die with
illegal division by zero errors anymore).
Suggestion from Jeremy Tinley <[email protected]>:
* Make the Host column large enough to handle IP addresses.
Slightly change other field widths to compensate.
Add query cache stats. Formatting of the values should probably be
cleaned up more.
VERSION 1.1:
Not released.
Updated the option handling as suggested by Paul DuBois
<[email protected]> so that --pass and --password both work. Also
noted that OS X is supported.
VERSION 1.0:
Released 1.0 on April 27, 2002.
Provided a fix for cases when we try remove the domain name from the
display even if it is actually an IP address.
Fixed a ton of formatting bugs and "use of uninitialized value"
errors.
Adjusted column widths and headings a bit to fit the common cases
that I usually see.
Added "Now/Sec" to the header, next to "Avg/Sec". The former is the
"real-time" queries per second since the last mytop refresh, while
the later is the queries per second since the server was last reset.
Added the `o' key to toggle the sort order.
Changed the `h' key to `H' for toggling the header.
Added the `h' key to filter based on hostname.
Changed the "Query Info" column to "Query or State" because if there
is no query running (like when a slave is replicating off the master
and you're watching the master), it'll show the state in that
column.
The real-time queries/sec are computed using Time::HiRes if it is
available, making the numbers much more accurate.
Added the `e' key to EXPLAIN a query. It works a lot like the `f'
key to get the full SQL of a query. Also, if you're already looking
at the full SQL (having pressed `f'), you can hit `e' to get it
explained if you'd like.
The web site has moved to: http://jeremy.zawodny.com/mysql/mytop/
There is now a mailing list. See the web site for details. Or look
here to subscribe:
http://www.advanced-mysql.com/cgi-bin/mailman/listinfo/mytop
That's all.
VERSION 0.9:
Set $0 to `mytop' to make it easier to spot and to keep some of the
command-line args out of view.
Remembered to include the README in the distribution.
VERSION 0.8:
Added a "Queries Per Second" or qps mode. You can enter qps mode by
hitting the `m' key. In this mode, mytop will write out one integer
per second. The number written reflects the number of queries
executed by the server in the previous one second interval.
mytop is now distributed as a true Perl package. There's a normal
Makefile.PL, which means it can be installed via the standard
mantra:
perl Makefile.PL
make
make test
make install
This should make life a bit easier. It also means that you could
install it using the CPAN shell.
VERSION 0.7:
Basic support for Windows. The screen clearing doesn't work (not
sure how to do that). But most everything else seems to be
functional there.
VERSION 0.6:
Some minor code cleanup.
VERSION 0.5:
Fixed some field widths to handle larger values.
VERSION 0.4:
Added -P command-line argument (to specify a port number).
Fixes to make mytop output better on small terminals.
Added `i' hotkey to toggle the display of Idle (sleeping) threads.
Other minor updates.
VERSION 0.3:
Updated documentation to reflect command-line arguments.
Added support for long and short command-line arguments.
Optional color support via Term::ANSIColor.
Added batch mode. In batch mode, mytop doesn't clear the screen and
only outputs data once. It's useful for running periodically and
capturing the data to a file. In batch mode, there is no limit to
the number of threads listed.
Fixed division by zero bug in key cache code.
Implemented the `r' keystroke to reset the status counters via a
FLUSH STATUS call.
If you resize your xterm, mytop now adapts somewhat well.
Implemented the `p' keystroke to pause the display.
Implemented the `h' keystroke to toggle the header.
Implemented the `k' keystroke to kill a thread.
Fixed various formatting bugs in not-so-rare cases.
Added more specific error messages from DBI on connect failure.
VERSION 0.2:
Added support for non-standard port numbers. But DBD::mysql seems to
ignore it. Try and see if it works for you. Doesn't for me on two
platforms.
Fixed some spelling problems.
Suggestions from "Richard Ellerbrock" <[email protected]>:
* If no host is specified, assume localhost.
* If no user is specified, assume root.
* Allow C-c to break.
* Better error handling and reporting on connect.
Suggestions from "William R. Mattil" <[email protected]>:
* Allow blank password, by setting initial default to ''.
VERSION 0.1:
None. Initial release.