Java heap space error neo4j

*爱你&永不变心* 提交于 2019-12-10 14:28:03

问题


I've just setup neo4j 2.1.3 community for the first time and I run into a java heap space OutOfMemoryError when trying to load a dataset of about 17M.

I'm working on a Mac with 16GB memory and OS X 10.9.4 java version 1.7.0_21 and I tried increasing the heap size via the command line with:

java -Xmx2048m

Problem is that the jvm doesn't seem to recongize this. I'm not experienced in setting java settings this way.

Any suggestions?


回答1:


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

# 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




回答2:


Its worth noting that these configuration settings have now been moved to neo4j.conf: http://neo4j.com/docs/operations-manual/current/performance/#heap-sizing



来源:https://stackoverflow.com/questions/25530538/java-heap-space-error-neo4j

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!