title: Hazelcast 3.4 'max-size' attribute of hazelcast IMap is not working correctly
body: <p>I am using <code>hazelcast-spring-3.1.xsd</code>. My <strong>hazelcast</strong> map configuration is given below.</p>
  
  <pre><code>&lt;hz:map name="defaultMap"
                      backup-count="1"
                      max-size="5000"
                      max-size-policy = "PER_NODE"
                      eviction-percentage="50"
                      read-backup-data="true"    
                      eviction-policy="LRU"
                      merge-policy=
                          "com.hazelcast.map.merge.LatestUpdateMapMergePolicy"
                      time-to-live-seconds="0"
                  &gt;
  </code></pre>
  
  <p>I have given <code>max-size = 5000</code>. I have <strong>12000 records</strong> and <strong>defaultMap</strong> is loading <strong>12000 records</strong> in it if i do insert into it. I am confused here ,how it can load more data than its actual size <strong>5000</strong>. I am getting no exception in inserting 12000 data records.</p>
  
  <p>And one more thing its eviction configuration is not working also. I want to evict my cache by 50 percent if it reaches its max-size limit.</p>
  
  <p>Can any body help me? Its very urgent.What i am missing ?</p>