Neo4j java memory heap error

I just installed the neo4j 2.1.3 community for the first time, and I came across an OutOfMemoryError java heap while trying to load a dataset around 17M.

I am working on a Mac with 16 gigabyte memory and OS X 10.9.4 java version 1.7.0_21, and I tried to increase the heap size using the command line:

java -Xmx2048m 

The problem is that jvm does not seem to return this. I am not sure about configuring java settings this way.

Any suggestions?

+5
source share
2 answers

You can change the JVM heap settings in the neo4j-wrapper.conf configuration file

 # Java Heap Size: by default the Java heap size is dynamically # calculated based on available system resources. # Uncomment these lines to set specific initial and maximum # heap size in MB. #wrapper.java.initmemory=512 #wrapper.java.maxmemory=512 

http://neo4j.com/docs/stable/server-performance.html

+3
source

It is worth noting that these configuration parameters are now transferred to neo4j.conf: http://neo4j.com/docs/operations-manual/current/performance/#heap-sizing

+1
source

Source: https://habr.com/ru/post/1201241/


All Articles