title: EhCache Memory limit
body: <p>In my code I am using EhCache to store an object. Code is below</p>
  
  <pre><code>@Resource(name = "ehCacheManager")
  private CacheManager manager;
  private Ehcache cache;
  public void testCache(){    
   cache = manager.getCache("ehSubjects");
   for loop to read subjects data{ //This loops runs 15051 times
   final Element element = new Element(subject.subjectId(), subject);
   cache.put(element);
   }
  }
  System.out.println("Cache Size:"+cache.getSize()); //15000
  </code></pre>
  
  <p>The issue is there are 15051 subjects objects but when after the loop I try to print the cache size it always gives me 15000. </p>
  
  <p>So is there a limit on the amount of objects we can keep in EhCache?</p>