2017-05-08 5 views
0

Kann jemand Java Heap Größe One Neo4j erhöhen?Erhöhung der Java-Heap-Größe auf Neo4j

ich eine CSV-Datei in Neo4j Datenbank geladen und ich kann es nicht geladen werden, da ich Größe Java Heap erhöhen müssen ... Ich habe, dass ich mehr als 100 GB frei haben ... Ich habe auch 16 GB RAM. Meine Jar-Datei wird in „C: \ Programme \ Neo4j CE 3.1.4 \ bin \ Neo4j-desktop-3.1.4.jar

Antwort

0

Sie die neo4j.conf einstellen können, die in C:\Program Files\Neo4j CE 3.1.4\conf\ von uncommenting befindet und Einstellungen die folgenden Zeilen:

# 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. 
#dbms.memory.heap.initial_size=512m 
#dbms.memory.heap.max_size=512m 

# The amount of memory to use for mapping the store files, in bytes (or 
# kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g'). 
# If Neo4j is running on a dedicated server, then it is generally recommended 
# to leave about 2-4 gigabytes for the operating system, give the JVM enough 
# heap to hold all your transaction state and query context, and then leave the 
# rest for the page cache. 
# The default page cache memory assumes the machine is dedicated to running 
# Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size. 
#dbms.memory.pagecache.size=10g 

wissen, dass, wenn Sie mit LOAD CSV Funktionalität, können Sie Batch Ihre Transaktion mit USING PERIODIC COMMIT Präfix Beispiel aus dem docs

USING PERIODIC COMMIT 1000 
LOAD CSV FROM 'https://neo4j.com/docs/developer-manual/3.1/csv/artists.csv' AS line 
CREATE (:Artist { name: line[1], year: toInt(line[2])}) 
.