Reputation: 31
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
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
, namelydbms.memory.heap.initial_size
anddbms.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