powershell - Neo4j (Windows) - can't increase heap memory size for Neo4jImport tool -


i tried batch import graph database 40 million nodes , 20 million relationships outofmemory error (this has been documented already, know). on windows, using import tool so:

neo4jimport –into semmeddb.graphdb --nodes nodes1.csv --nodes nodes2.csv --relationships edges.csv  

i have 16 gb of ram neo4j allocates 3.5 gb of max heap memory while still have 11 gb of free ram. try fix wouldn't outofmemory error, followed suggestions online , created conf folder in c:\program files\neo4j folder , created neo4j-wrapper.conf file heap values set to:

wrapper.java.initmemory=10000 wrapper.java.maxmemory=10000 

also, set neo4j properties file page cache setting to:

dbms.pagecache.memory=5g 

the problem is, when restart neo4j application , try import again, still says 3.5 gb of max heap space , 11 gb free ram... why doesn't neo4j recognize settings?

note, i've tried downloading zip version of neo4j in order use powershell version of import tool run same issue of changing configuration settings neo4j not recognizing them.

i appreciate this... thanks!

cannot tell windows, on linux neo4j-wrapper.conf not used neo4j-import tool. instead can pass additional jvm parameters using java_opts environment variable (again linux syntax here):

java_opts="-xmx10g" bin/neo4j-import  

to validate approach, amend -xx:+printcommandlineflags above. @ beginning of output should see line similar to

-xx:initialheapsize=255912576 -xx:maxheapsize=4094601216 \n -xx:+printcommandlineflags -xx:+usecompressedclasspointers \n -xx:+usecompressedoops -xx:+useparallelgc 

if 1 shows up, using java_opts way go.


Comments

Post a Comment

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -