Emergency

A quick way to get memcached status


Posted on:

|

By:


PREVIOUS POST
NEXT POST
Share Button

There are all sorts of different interfaces to memcached, but you don’t need any of them to make requests from the command line, because its protocol is so simple. Try this, assuming it’s running on the usual port on the local machine:

Here’s an easy “top” emulator for memcached:

If you don’t have netcat (nc), you can also use Bash’s built-in /proc/tcp magic if it’s enabled. Anything that can push a couple of characters to a TCP port and print the result to stdout will work. Or you can use something like this, if you must do it via PHP:

Share Button
PREVIOUS POST
NEXT POST


Baron Schwartz

Baron is the lead author of High Performance MySQL. He is a former Percona employee.



Tags:

, ,

Categories:
Insight for Developers


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *