Hi,
I checked the memory usage. Yes, you were right. With 204Bytes entry cost memmory usage is explainable.
But again, it is taking almost twice the memory it is supposed to take although we disabled the backup.
The java file (which is starting the server as well as creating the map) looks like following:
public class Driver {
public static IMap<String, byte[]> createMap(String mapName, HazelcastInstance hzc){
IMap <String, byte[]> map = hzc.getMap(mapName);
return map;
}
public static void main(String[] args) {
try {
Config config = new XmlConfigBuilder(args[0]).build();
HazelcastInstance hz = Hazelcast.newHazelcastInstance(config);
IMap<String, byte[]> map = createMap("DBG", hz);
} catch (Exception e) {s
e.printStackTrace();
}
}
}
In Hazelcast.xml we made the following change (as you can see in the java file attached our map-name is DBG):
<map name="DBG">
<in-memory-format>BINARY</in-memory-format>
<backup-count>0</backup-count>
<async-backup-count>0</async-backup-count>
<time-to-live-seconds>0</time-to-live-seconds>
<max-idle-seconds>0</max-idle-seconds>
<eviction-policy>NONE</eviction-policy>
<max-size policy="PER_NODE">0</max-size>
<eviction-percentage>25</eviction-percentage>
<min-eviction-check-millis>100</min-eviction-check-millis>
<merge-policy>com.hazelcast.map.merge.PutIfAbsentMapMergePolicy</merge-policy>
</map>