7

How do I monitor memcached to know if / how many evictions are occurring, and how much memory is used/free.

daviesgeek
  • 115
  • 4
philfreo
  • 987
  • 2
  • 9
  • 22

1 Answers1

10

$telnet ip_of_memcached_host 11211 or $nc ip_of_memcached_host 11211

stats
STAT pid 117
...
STAT limit_maxbytes 67108864
....
STAT evictions 0
END

stats slabs
....
STAT total_malloced 30234456
END

or use favorite programming language api for memcached

hiemye
  • 779
  • 1
  • 7
  • 9