cancel
Showing results for 
Search instead for 
Did you mean: 

Import large graphml file into neo4j

bsaichaitanya
Node Link

Hello,

We are trying to import a large graphml (around 6.5gb) into neo4j using apoc.import.graphml. Neo4j is throwing java.lang:StackOverflowError. In the neo4j.conf file, we have added an additional parameter dbms.jvm.additional= -Xss1g. Even after making this change, still getting the same error. Is this configuration correct or what changes have to be made to accommodate this. Also, please let me know if there is any other procedure to achieve the same. Thank you.

3 REPLIES 3

ThomasVarias
Node Clone

You could give it more memory (if the machine has more memory of course) or chop the file you are trying to import into smaller chunks first and import them one-by-one.

Thomas

ThomasVarias
Node Clone

actually thinking about this... you are getting a stackOverFlow. More heap memory won't help in that case I guess. You could try and increase the stack memory size. See your JVM documentation for how to do that.

Thomas

Hi Thomas,

Thank you for the response. We were unable to increase the stack size above 2gb. Will check the documentation again.