I am newbie to Mapdb. My product is bundled with MapDb version 1.0.9 and cannot migrate to latest for now hence dealing with the same.
I have a use case where would like to store Object onto Map db off-heap and retrieve on the need basis.
My DB configuration works absolutely fine for smaller data sets but not if my object size execeeds ~50MB+
I have tried various configuration like increasing cache size, enabling cacheWeakRefEnable() etc...as suggested by MapDb author nothing is working for me. Please suggest some proper configuration.
Below is my configuration.
DB dbWriter = DBMaker.newFileDB(new File("testmapDb12")).cacheSize(10*1024*1024).cacheWeakRefEnable().make();
Map<Long, Object> samplesMap = dbWriter.createTreeMap("checkDb34").valuesOutsideNodesEnable().makeOrGet();
samplesMap.put(timeStamp, Object);
DB dbWriter = DBMaker.newFileDB(new File("testmapDb12")).cacheDisable().transactionDisable().make();
Map<Long, Object> samplesMap = dbWriter.createTreeMap("checkDb34").makeOrGet();
samplesMap.put(timeStamp, Object);
When am trying to put no error is reported but database is never updated. After few iterations am seeing Out-of-Memory-Exceptions.