[英]Hazelcast max size of distributed map not respected
Hazelcast 3.3 does not respect the JVM size of a Map (MaxSizePolicy.USED_HEAP_SIZE). Hazelcast 3.3不遵守Map的JVM大小(MaxSizePolicy.USED_HEAP_SIZE)。 MaxSize 20 MB and LRU eviction policy is used in our example.
在我们的示例中使用了MaxSize 20 MB和LRU逐出策略。
mapCfg.setEvictionPolicy(MapConfig.EvictionPolicy.LRU);
mapCfg.setEvictionPercentage(20);
MaxSizeConfig maxSizeCfg = new MaxSizeConfig(20, MaxSizePolicy.USED_HEAP_SIZE);
mapCfg.setMaxSizeConfig(maxSizeCfg);
This is a real problem for us as we have more data than heap and so we get a lot of OutOfMemoryError's. 这对我们来说是一个真正的问题,因为我们拥有的数据量比堆还多,因此我们得到了很多OutOfMemoryError的错误。
Anybody else experiencing the same? 其他人也遇到同样的情况吗? Is our config wrong?
我们的配置错误吗? Is it a known issue?
这是一个已知问题吗?
new MaxSizeConfig(20, MaxSizePolicy.USED_HEAP_SIZE); 新的MaxSizeConfig(20,MaxSizePolicy.USED_HEAP_SIZE); think you need to make that higher
认为你需要提高
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.