Skip to content

Instantly share code, notes, and snippets.

@tairov
Last active January 4, 2016 08:09
Show Gist options
  • Save tairov/8592937 to your computer and use it in GitHub Desktop.
Save tairov/8592937 to your computer and use it in GitHub Desktop.
memcached
echo "stats settings" | nc localhost 11211
telnet localhost 11211
get cmd
key . "_ru_geo_"
enable capturing information
stats detail on
stats detail off
stats detail dump
sudo tcpdump -i any port 11211 -s 65535 -x -nn -q -tttt > /tmp/tcpdump.log
wget http://www.maatkit.org/get/mk-query-digest
./mk-query-digest --type memcached /tmp/tcpdump.log | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment