I’ve released another version of the innotop MySQL and InnoDB monitor. As always, you can download innotop from its homepage.
It’s worth upgrading to this version not only because of the new features, but also because it should handle more special cases without crashing. Of course, if it does crash, I appreciate your help fixing it; see this article about what information I need.
Changes since version 0.1.123 include:
- Fixes to deal with older versions of Perl. Thanks to everyone who helped me find out what was wrong.
- Add “W” mode to display InnoDB locks.
- Add more information to various displays throughout.
- Handle special cases, and display more information, in InnoDB Deadlock mode.
- Tons and tons of tedious special-case parsing to handle InnoDB’s bewildering array of nearly unparseable messages about foreign key errors. After reading a lot of source code, I’ve decided that there are such a wide range of error messages even within one MySQL release, not to mention different ones in different versions, that I should stop focusing on this and work on other things for a bit. Note to anyone thinking of building anything like InnoDB, which outputs status text… please consider that someone may want to use a machine to read it someday (some of the InnoDB status text is even hard to figure out if you’re a human!) Parsability is not that hard to do, and it makes everything so much more useful. Not that I’m complaining :-)
- A lot more tests in the test suite… thanks to everyone who sent me dumps of
SHOW ENGINE INNODB STATUS!
- Fix some minor issues with the innotop configuration file, especially when upgrading versions, and with the InnoDB statusbar display.
- Dozens of minor annoyances and little bugs that caused crashes.
I’ve gotten some good feedback from some of you – keep that coming! Not only do I like hearing how innotop helps you, but I appreciate feature requests and suggestions too.
The next thing I want to work on is some features to really analyze the information, instead of just dumping it all to the screen and letting you try to make sense of it. I’m planning to build some heuristics that will make suggestions like “your query cache isn’t very effective,” “you have a lot of table locks waited,” or so on. Again, if you have suggestions, let me know.