1
votes

3.0.0 M05 beta on Windows 7 64 bit

I'm trying to load a CSV using PERIODIC COMMIT, and I'm getting a Java heap space error.

I've tried setting -Xmx512M or -Xmx3G and watching windows task manager, the memory allocation stays ~300M.

What setting do I need to change to allocate more memory to the server so I can get the db to use more memory?

(As a note, a stock out-of-the box 2.3.2 installation processes all these CSV files no problem...)

Update 1:

-Xmx512M and -Xmx3G were set in the "neo4j-community.vmoptions" file

Update 2: I found a log file:

neo4j.log:

2016-03-21 17:50:49.293-0400 INFO  [o.n.s.d.LifecycleManagingDatabase] Starting...
2016-03-21 17:51:00.449-0400 INFO  [o.n.s.d.LifecycleManagingDatabase] Started.
Mar 21, 2016 5:51:01 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
Mar 21, 2016 5:51:02 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
Mar 21, 2016 5:51:02 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
2016-03-21 17:51:03.099-0400 INFO  [o.n.s.CommunityNeoServer] Remote interface available at http://localhost:7474/
Exception in thread "neo4j.PauseMonitor" java.lang.OutOfMemoryError: Java heap space

Update 3:

There's no "neo4j-wrapper.conf" on my system nor is NEO4J_HOME set. Setting this env var and creating neo4j-wrapper.conf doesn't change the behavior - the server maxes out around 300M and dies with a heap error when I try to do the load.

1

1 Answers

1
votes

By default the Java heap size should be dynamically calculated based on system resources, but it sounds like that is not working properly here. Are you using milestone 5 version of 3.0 (most recent milestone release)?

In conf/neo4j-wrapper.conf config file there are two options for specifying initial and maximum memory for JVM heap size:

wrapper.java.initmemory
wrapper.java.maxmemory

How were you specifying -Xmx512M and -Xmx3G? In conf/neo4j-wrapper.conf using wrapper.java.additional?