DEV Community

Tommy
Tommy

Posted on • Originally published at expressmagazine.net

Pick your preferred monitoring memcached tool

Whether you don’t want to install any additional package or fancy more detailed statistics, your preferred monitoring tool will vary.

Let’s make a few assumptions first to better understand the context of this post:

Your database server is running Ubuntu/Debian.
You have one or several web nodes and at least one database server (alternatively you could have a primary/replica). memcached is installed on the remote database server.

The database server’s IPv4 address is 203.0.113.12 memcached is listening on its default port (11211) netcat is installed

Using netcat

Alt Text

In most Ubuntu-based distributions and Debian, netcat will be available by default. This allows to run commands such as:

$ echo stats | nc 203.0.113.12 11211
STAT pid 71
STAT uptime 6949
STAT time 1486379640
STAT version 1.4.21
STAT libevent 2.0.21-stable
STAT pointer_size 64
(snipped)
END

Top comments (0)