It is very importent to get the real time status of memcached, By getting it we will be able to know the memmory usage and caching status of the memcached. This will hel us to fine tune the memcache.

This is also really helpful in getting the configuration of memcache

Here’s an easy “top” emulator for memcached

watch “echo stats | nc 127.0.0.1 11211″

The out put will be as follows

  1. echo stats | nc 127.0.0.1 11211
  2. STAT pid 22020
  3. STAT uptime 3689364
  4. STAT time 1227753109
  5. STAT version 1.2.5
  6. STAT pointer_size 64
  7. STAT rusage_user 4543.071348
  8. STAT rusage_system 8568.293421
  9. STAT curr_items 139897
  10. STAT total_items 51710845
  11. STAT bytes 360147055
  12. STAT curr_connections 40
  13. STAT total_connections 66762
  14. STAT connection_structures 327
  15. STAT cmd_get 319992973
  16. STAT cmd_set 51710845
  17. STAT get_hits 280700485
  18. STAT get_misses 39292488
  19. STAT evictions 849165
  20. STAT bytes_read 141320046298
  21. STAT bytes_written 544357801590
  22. STAT limit_maxbytes 402653184
  23. STAT threads 4
  24. END

Post By Editor (2,827 Posts)

Website: →

Connect