Memcached memory usage

memcached

Is there any command line or php script which returns the memcached total memory usage?

Best Answer

As Mike said, you can look at the line including the "STAT bytes" to see memory usage:

$ echo "stats" | nc -w 1 <host> <port> | awk '$2 == "bytes" { print $2" "$3 }'