11.1.3.1.2 Configuring Off-Heap Limits

You can specify the off-heap limit by setting the max_off_heap_size field in the graph server (PGX) configuration. See Configuration Parameters for the Graph Server (PGX) Engine for more information on the max_off_heap_size parameter.

WARNING:

The off-heap limit is not guaranteed to never be exceeded because of rounding and synchronization trade-offs.

The off-heap limit can be set using Java system properties using -Dpgx.max_off_heap_size=<size_in_mb> in the JVM argument.

You can also set the off-heap limit using an environment variable. The following example sets the maximum off-heap size to 256 GB using an environment variable:

PGX_MAX_OFF_HEAP_SIZE=256000 java ...

Note:

If both system property and environment variable are set for off-heap limit, then the system property value is used.