How to find total memory consumed by the badger

Hi, My badger goes to primary memory, How can I find out the total memory used by the badger. How can I get alerted if its running low. Apologies if its answered already, newbie here