title: Ehcache cache size at runtime
body: <p>I am running a large VM in production and would like to understand more about my cache size at runtime. My caches are all based upon ehache</p>
  
  <p>What is the best way to see the size of individual caches at runtime. Either using JMX or API </p>
  
  <p>Is there any option to configure by plain-old-java calls to the CacheManager, or (ignoring JMX for the moment) must one build the XML configuration slug up in a big string? </p>