memcached monitoring and statistics

I wanted to know, overtime, how many cache hits and misses my instance was getting. Searched a lot and finally found this perl script:

Usage is very simple. Save the file, give it execution permissions, then just run:

./ –commands –cumulative

Here’s an output example: output example

Seems like I’m doing fine, caching the right parts! Hit over 80% and only half of my allocated memcached memory being used… (that’s because I had recently restarted it, so usually it keeps filled).