I am using a HashMap to cache some important data when my application starts.
This cache sometime grows and then reduced. I want to know how much memory it is taking on RAM.
Is it possible to get memory taken by a map in KB? Is there any API?
I am using a HashMap to cache some important data when my application starts.
Share
i’m using this method to estimate the MAP size: