-
1. Re: What is the appropriate number of maxEntries
william.burns Jul 8, 2014 8:34 AM (in response to rayhym)In the current versions if the maxEntries is not a power of 2 we just find the next lowest one. So in the case of setting it to 1500 the max entries would 2^11 = 2048.
Also maxEntries contract is just that you will not get above that, it doesn't guarantee that if you keep adding it will keep growing. This is because we do this based on the segments available in the data container (controlled by the concurrency level) just like ConcurrentHashMap. http://infinispan.org/docs/7.0.x/faqs/faqs.html#_cache_s_number_of_entries_never_reaches_configured_maxentries_why_is_th… If you set the concurrency level to 1 then you would be able to get up to 1024 much easier, however you would have extremely high levels of contention as there is only 1 segments for all of the keys and you will run most likely run into locking issues with concurrent updates.