Class NativeMemoryConfig

java.lang.Object
com.hazelcast.config.NativeMemoryConfig

public class NativeMemoryConfig extends Object
Configures native memory region.

Native memory is allocated outside JVM heap space and is not subject to JVM garbage collection. Therefore, hundreds of gigabytes of native memory can be allocated & used without introducing pressure on GC mechanism.

Data structures, such as IMap and ICache, store their data (entries, indexes etc.) in native memory region when they are configured with InMemoryFormat.NATIVE.

  • Field Details

    • DEFAULT_MIN_BLOCK_SIZE

      public static final int DEFAULT_MIN_BLOCK_SIZE
      Default minimum block size in bytes
      See Also:
    • DEFAULT_PAGE_SIZE

      public static final int DEFAULT_PAGE_SIZE
      Default page size in bytes
      See Also:
    • DEFAULT_METADATA_SPACE_PERCENTAGE

      public static final float DEFAULT_METADATA_SPACE_PERCENTAGE
      Default metadata space percentage
      See Also:
    • MIN_INITIAL_MEMORY_SIZE

      public static final int MIN_INITIAL_MEMORY_SIZE
      Minimum initial memory size in megabytes
      See Also:
    • INITIAL_MEMORY_SIZE

      public static final int INITIAL_MEMORY_SIZE
      Initial memory size in megabytes
      See Also:
  • Constructor Details

    • NativeMemoryConfig

      public NativeMemoryConfig()
    • NativeMemoryConfig

      public NativeMemoryConfig(NativeMemoryConfig nativeMemoryConfig)
  • Method Details