mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Fabio Pistolesi
12.53.2015 a8a5041e3fb81b5afe8bb909b1afc8048058b833
Fix (again) OPENDJ-1727 db-cache-percent default values in persistit backend probably too aggressive

Since we're doing our own computations on how much memory components should use, stick to giving them a maximum amount, not percent,
since maximum is different.
1 files modified
2 ■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/persistit/PersistItStorage.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/persistit/PersistItStorage.java
@@ -595,7 +595,7 @@
    }
    else
    {
      bufferPoolCfg.setFraction(config.getDBCachePercent() / 100.0f);
      bufferPoolCfg.setMaximumMemory(memQuota.memPercentToBytes(config.getDBCachePercent()));
      memQuota.acquireMemory(memQuota.memPercentToBytes(config.getDBCachePercent()));
    }
    dbCfg.setCommitPolicy(config.isDBTxnNoSync() ? SOFT : GROUP);