14.5. Memory recommendations

This chapter describes the memrec command of Neo4j Admin.

Use the memrec command of neo4j-admin to get an initial recommendation on how to configure memory parameters for Neo4j:

neo4j-admin memrec [--memory=<memory dedicated to Neo4j>]

The recommendations will be given in a format such that it can be copied and pasted straight into neo4j.conf.


Option Default Description


The memory capacity of the machine

The amount of memory to allocate to Neo4j. Valid units are: k, K, m, M, g, G.


The neo4j-admin memrec command calculates a valid starting point for Neo4j memory settings, based on the provided memory. The specific conditions for your use case may warrant adjustment of these values. See Section 13.1, “Memory configuration” for a description of the memory settings in Neo4j.

Example 14.4. Use the memrec command of neo4j-admin

The following example illustrates how neo4j-admin memrec provides a recommendation on how to use 16g of memory:

$neo4j-home> bin/neo4j-admin memrec --memory=16g

# Based on the above, the following memory settings are recommended: