mirror of https://github.com/apache/druid.git
use fixed-size mapdb cache to avoid heap growing uncontrollably
This commit is contained in:
parent
40f223215a
commit
ad23e49777
|
@ -109,7 +109,9 @@ public class OffheapIncrementalIndex extends IncrementalIndex<BufferAggregator>
|
|||
final DBMaker dbMaker = DBMaker.newMemoryDirectDB()
|
||||
.transactionDisable()
|
||||
.asyncWriteEnable()
|
||||
.cacheSoftRefEnable();
|
||||
.cacheLRUEnable()
|
||||
.cacheSize(16384);
|
||||
|
||||
this.factsDb = dbMaker.make();
|
||||
this.db = dbMaker.make();
|
||||
final TimeAndDimsSerializer timeAndDimsSerializer = new TimeAndDimsSerializer(this);
|
||||
|
|
Loading…
Reference in New Issue