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

matthew_swift
30.07.2009 d96bda110570c17ed522a03d4635ae22db52f8ca
opends/src/server/org/opends/server/backends/jeb/ConfigurableEnvironment.java
@@ -411,6 +411,21 @@
    // they are instead renamed from .jdb to .del.
    envConfig.setConfigParam("je.cleaner.expunge", "true");
    // If the JVM is reasonably large then we can safely default to
    // bigger read buffers. This will result in more scalable checkpointer
    // and cleaner performance.
    if (Runtime.getRuntime().maxMemory() > 256 * 1024 * 1024)
    {
      envConfig.setConfigParam("je.cleaner.lookAheadCacheSize", String
          .valueOf(2 * 1024 * 1024));
      envConfig.setConfigParam("je.log.iteratorReadSize", String
          .valueOf(2 * 1024 * 1024));
      envConfig.setConfigParam("je.log.faultReadSize", String
          .valueOf(4 * 1024));
    }
    return envConfig;
  }