Closed bianjft closed 6 years ago
pom set mapdb version:3.0.5 and 3.0.7
i think i solve this problem use 'expireCompactThreshold(0.5)' in set HTreeMap params
final HTreeMap<String, byte[]> map = db.hashMap("MapDBTest")
.keySerializer(Serializer.STRING)
.valueSerializer(Serializer.BYTE_ARRAY)
.expireAfterCreate(1, TimeUnit.MINUTES)
.expireMaxSize(1000)
.expireStoreSize(1024)
.expireCompactThreshold(0.5)
.create();
The crash when firest full gc because: Out of Direct buffer memory!
exception:
set vm options -XX:MaxDirectMemorySize=1G
test code :