Godfather
Godfather

Reputation: 31

Can heap size be increased on Neo4j community edition

I am using neo4j community edition. I am using 150 nodes and every node has a relationship with the other.

When I am running a query it throws an error:

Neo.TransientError.General.OutOfMemoryError

How can I increase the heap size?

Upvotes: 3

Views: 2473

Answers (1)

Bruno Peres
Bruno Peres

Reputation: 16375

Yes, it can be done. Just edit your neo4j.conf file. Take a look at the docs:

The heap memory size is determined by the parameters in NEO4J_HOME/conf/neo4j.conf, namely dbms.memory.heap.initial_size and dbms.memory.heap.max_size providing the heap size in Megabytes or with a unit, e.g. 16000 or preferably 16G. It is recommended to set these two parameters to the same value to avoid unwanted full garbage collection pauses.

Upvotes: 1

Related Questions