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

Matthew Swift
17.39.2014 9f2b0e32f4fd3962e71358bdbef5d5af9b5e8379
opendj3-server-dev/src/server/org/opends/server/backends/pluggable/ConfigurableEnvironment.java
@@ -463,12 +463,12 @@
    {
      if (MemoryBudget.getRuntimeMaxMemory() < cfg.getDBCacheSize()) {
        throw new ConfigException(
            ERR_CONFIG_JEB_CACHE_SIZE_GREATER_THAN_JVM_HEAP.get(
            ERR_CONFIG_JEB_CACHE_SIZE_GREATER_THAN_JVM_HEAP.read(
                cfg.getDBCacheSize(), MemoryBudget.getRuntimeMaxMemory()));
      }
      if (cfg.getDBCacheSize() < MemoryBudget.MIN_MAX_MEMORY_SIZE) {
        throw new ConfigException(
            ERR_CONFIG_JEB_CACHE_SIZE_TOO_SMALL.get(
            ERR_CONFIG_JEB_CACHE_SIZE_TOO_SMALL.read(
                cfg.getDBCacheSize(), MemoryBudget.MIN_MAX_MEMORY_SIZE));
      }
    }