node.js - Neo4j hangs on multiple operations through rest-api, how to configure it? -


i have neo4j instance run on 10$/mo digitalocean vps:

1gb / 1 cpu, 30gb ssd disk, 2tb transfer

i'm using awesome node library seraph. while tried save bit of data (about 10 properties per node) - (around 100 root nodes + 3-5 related nodes each) after half of start econnreset, missing ids , stuff. guess it's because of wrong configuration/not enough resources.

so how check wrong? kind of logs read?

i found this issue, , added configuration:

neostore.relationshipgroupstore.db.mapped_memory=10m neostore.nodestore.db.mapped_memory=250m neostore.propertystore.db.mapped_memory=500m neostore.propertystore.db.strings.mapped_memory=500m 

and there less errors, still there lot of stuff lost due econnreset.

what should change? thank much!

  1. use neo4j 2.2.2
  2. configure in neo4j.properties dbms.pagecache.memory=250m
  3. configure in neo4j-wrapper.conf wrapper.java.maxmemory=512
  4. i'm not sure if seraph uses rest api create data or cyphers remote endpoint, latter preferred.

please provide code !!

i presume can whole operation 500 cypher statements each parametrized 10 properties passed neo map parameter can assign directly.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -