First version of memcache stats script based on memcache.php My work requires me to work more on performance optimizations so i need to do some home work from time to time :-) lately i started getting deeper into memcache to learn its internal structure and algorithms used. I know i wont make survive without a simple and quick way of checking status and statistics of my memcache. As a result of last weekend i am happy to share a nice stats tool.
Its based on the memcache.php created by Harun Yayli as it is faster to adopt it than do everything from scratch. I extended the stats overview to show some more information and to allow reseting stats. But what is more cool i have added a new screen with slab stats to be able to analyze servers usage and slabs share.
I try to add comments and tooltips wherever possible to let everyone understand what each piece of information means etc.
If you like the tool or not let me know. Im very interested in any opinions of what information should be presented, i might actually implement it if you give me a good suggestion ;-)
I also hope to write some blogs soon as i progress in my memcache performance tweaking so stay tuned.
Memcache statistics screens

General status view with a few new details.

Slabs details with possibility to drill down and view keys list or even fetch values.

Finally a new screen with information combined in slabs and items stats. All in a nice javascript sortable table with some nice tooltips for better clarity. This will probably change or expand soon as im still considering what are the best metrics and what details do i need to understand potential problems.
Download
Finally, you can download all you need using this links: Memcache stats v0.1
Main Blog Categories
About the author

Hi, my name is Artur Ejsmont,
welcome to my blog.
I am a passionate software engineer living in Sydney and working for Yahoo! Drop me a line or leave a comment.
Enjoy!
Comments
It would be cool if you can
It would be cool if you can associate a Name with the Memcached Hosts IP and Port. Some people have a ton of Memcached Servers and can't remember what they all relate to. Something like the following.
172.26.55.222:11227 Production Memcache
No unfortunately no changes.
No unfortunately no changes. I did not really need anything lately.
Also i have seen that there is a newer tool that you might want to check out http://code.google.com/p/phpmemcacheadmin/
This looks like a great tool.
This looks like a great tool. It was recommended to me from a response on stackoverflow. I was wondering if there had been any more work done on this project since it's release in 18months ago?
Post new comment