Follow Along as I Stumble on the Path to Learning RoR

How to Find How Much Memcache Memory You’re Using

I wanted to figure out how much Memcache memory I was using for my Heroku Rails app.  After all, how would I know if I need to upgrade otherwise, unless I keep checking the logs for the word ‘miss’.

I found out through this post on Stackoverflow.

From the console (‘heroku run console’ with the Cedar stack), enter

Rails.cache.stats

it will provide a bunch of stats, and towards the end you will see bytes.

Advertisements

Comments are closed.