core/src/main/java/com/orientechnologies/common/util/OMemory.java
public static void fixCommonConfigurationProblems() {
    long diskCacheSize = OGlobalConfiguration.DISK_CACHE_SIZE.getValueAsLong();

    final int max32BitCacheSize = 512;
    if (getJavaBitWidth() == 32 && diskCacheSize > max32BitCacheSize) {
      OLogManager.instance()
          .infoNoDb(OGlobalConfiguration.class, "32 bit JVM is detected. Lowering disk cache size from %,dMB to %,dMB.",
              diskCacheSize, max32BitCacheSize);
      OGlobalConfiguration.DISK_CACHE_SIZE.setValue(max32BitCacheSize);
    }
  }
public static void fixCommonConfigurationProblems() {
    long diskCacheSize = OGlobalConfiguration.DISK_CACHE_SIZE.getValueAsLong();

    final int max32BitCacheSize = 512;
    if (getJavaBitWidth() == 32 && diskCacheSize > max32BitCacheSize) {
      OLogManager.instance()
          .infoNoDb(OGlobalConfiguration.class, "32 bit JVM is detected. Lowering disk cache size from %,dMB to %,dMB.",
              diskCacheSize, max32BitCacheSize);
      OGlobalConfiguration.DISK_CACHE_SIZE.setValue(max32BitCacheSize);
    }
  }
public static void fixCommonConfigurationProblems ( ) { long diskCacheSize = OGlobalConfiguration . DISK_CACHE_SIZE . getValueAsLong ( ) ; final int max32BitCacheSize = 512 ; if ( getJavaBitWidth ( ) == 32 && diskCacheSize > max32BitCacheSize ) { OLogManager . instance ( ) . infoNoDb ( OGlobalConfiguration . class , "32 bit JVM is detected. Lowering disk cache size from %,dMB to %,dMB." , diskCacheSize , max32BitCacheSize ) ; OGlobalConfiguration . DISK_CACHE_SIZE . setValue ( max32BitCacheSize ) ; } }
Tries to fix some common cache/memory configuration problems: <ul> <li>Cache size is larger than direct memory size.</li>
<li>Memory chunk size is larger than cache size.</li> <ul/>
Tries to fix some common cache / memory configuration problems : <ul > <li > Cache size is larger than direct memory size . < / li > <li > Memory chunk size is larger than cache size . < / li > <ul / >